Skip to content

Commit 3e274bd

Browse files
kaysieversgregkh
authored andcommitted
gpio: struct device - replace bus_id with dev_name(), dev_set_name()
Cc: Michael Buesch <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Kay Sievers <[email protected]>
1 parent e537b24 commit 3e274bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/bt8xxgpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static void bt8xxgpio_gpio_setup(struct bt8xxgpio *bg)
160160
{
161161
struct gpio_chip *c = &bg->gpio;
162162

163-
c->label = bg->pdev->dev.bus_id;
163+
c->label = dev_name(&bg->pdev->dev);
164164
c->owner = THIS_MODULE;
165165
c->direction_input = bt8xxgpio_gpio_direction_input;
166166
c->get = bt8xxgpio_gpio_get;

0 commit comments

Comments
 (0)