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.

fsi: Provide thin wrappers around dev_[gs]et_data() for fsi devices

Similar to wrappers for other subsystems provide inline functions for
fsi devices to store driver data.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Acked-by: Eddie James <eajames@linux.ibm.com>
Link: https://patch.msgid.link/5de7a7cbb30918b3503235130bd8aa1a9a63d71c.1765279318.git.u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Uwe Kleine-König and committed by
Greg Kroah-Hartman
18fa479b 03db6a80

+10
+10
include/linux/fsi.h
··· 19 19 uint32_t size; 20 20 }; 21 21 22 + static inline void *fsi_get_drvdata(struct fsi_device *fsi_dev) 23 + { 24 + return dev_get_drvdata(&fsi_dev->dev); 25 + } 26 + 27 + static inline void fsi_set_drvdata(struct fsi_device *fsi_dev, void *data) 28 + { 29 + dev_set_drvdata(&fsi_dev->dev, data); 30 + } 31 + 22 32 extern int fsi_device_read(struct fsi_device *dev, uint32_t addr, 23 33 void *val, size_t size); 24 34 extern int fsi_device_write(struct fsi_device *dev, uint32_t addr,