summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2025-12-09 14:40:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-27 18:35:35 +0300
commit18fa479b90c29a48481ee0aae98779278c51b96b (patch)
treefe7601d5b69aef2c56f45227ee09ce9cd62cfee3 /include/linux
parent03db6a80b79ba0560ef882747b9282cd4eed37e0 (diff)
downloadlinux-18fa479b90c29a48481ee0aae98779278c51b96b.tar.xz
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fsi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/fsi.h b/include/linux/fsi.h
index adea1b432f2d..05be75869a69 100644
--- a/include/linux/fsi.h
+++ b/include/linux/fsi.h
@@ -19,6 +19,16 @@ struct fsi_device {
uint32_t size;
};
+static inline void *fsi_get_drvdata(struct fsi_device *fsi_dev)
+{
+ return dev_get_drvdata(&fsi_dev->dev);
+}
+
+static inline void fsi_set_drvdata(struct fsi_device *fsi_dev, void *data)
+{
+ dev_set_drvdata(&fsi_dev->dev, data);
+}
+
extern int fsi_device_read(struct fsi_device *dev, uint32_t addr,
void *val, size_t size);
extern int fsi_device_write(struct fsi_device *dev, uint32_t addr,