]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: pca955x: Use pointers to driver data rather than I2C client
authorEddie James <eajames@linux.ibm.com>
Wed, 12 Feb 2025 14:30:36 +0000 (08:30 -0600)
committerLee Jones <lee@kernel.org>
Thu, 20 Feb 2025 14:29:08 +0000 (14:29 +0000)
commit1ddab1e2de10a37b66b235cff30e5b0a0beb8809
tree4be7cff151bf98bd871228ca39d65e52bcd171a7
parentca3362a841b67a23d23c22ac16d18acec6cc75ec
leds: pca955x: Use pointers to driver data rather than I2C client

As a minor clean up item, pass the driver data pointer instead of the
I2C client to the reader and writer helper functions. Now the PCA
driver data doesn't have to be looked up again in the I2C client data

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20250212143038.1416501-3-eajames@linux.ibm.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-pca955x.c