Re: [PATCH] gpio: name PCA953x gpio chips after device name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linus Walleij <linus.walleij@xxxxxxxxxx> writes:

> Instead of using the name directly from the I2C client
> to name the gpio_chip, use dev_name() on the client->dev,
> so we get the sometimes more unique device name, as I2C has
> a mechanism for naming its devices explicitly in e.g.
> board data.
>
> This is a prerequisite for being able to reference
> uniquely any I2C GPIO expander defined in a board file
> when setting up GPIO descriptor tables.
>
> Cc: Robert Jarzmik <robert.jarzmik@xxxxxxx>
> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Nice.

Reviewed-by: Robert Jarzmik <robert.jarzmik@xxxxxxx>

Cheers.

--
Robert



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux