Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

can: mcp251x: Fix up includes

This driver is including the legacy GPIO header <linux/gpio.h>
but the only thing it is using from that header is the wrong
define for GPIOF_DIR_OUT.

Fix it up by using GPIO_LINE_DIRECTION_* macros respectively.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20240412173332.186685-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Andy Shevchenko and committed by
Marc Kleine-Budde
b1dc3c68 7e8fcb81

+2 -3
+2 -3
drivers/net/can/spi/mcp251x.c
··· 28 28 #include <linux/device.h> 29 29 #include <linux/ethtool.h> 30 30 #include <linux/freezer.h> 31 - #include <linux/gpio.h> 32 31 #include <linux/gpio/driver.h> 33 32 #include <linux/interrupt.h> 34 33 #include <linux/io.h> ··· 481 482 unsigned int offset) 482 483 { 483 484 if (mcp251x_gpio_is_input(offset)) 484 - return GPIOF_DIR_IN; 485 + return GPIO_LINE_DIRECTION_IN; 485 486 486 - return GPIOF_DIR_OUT; 487 + return GPIO_LINE_DIRECTION_OUT; 487 488 } 488 489 489 490 static int mcp251x_gpio_get(struct gpio_chip *chip, unsigned int offset)