diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-07-24 21:00:01 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-08-08 16:22:06 +0200 |
commit | 8a2e1d28af89818d5c24bd89f5366aa0bf7ff784 (patch) | |
tree | 6b47b1295202dfa25010c1ef23454343ab05b514 /include/driver.h | |
parent | 1da26bfb9da2d0d0054169b15d90e9a2c85ae902 (diff) | |
download | barebox-8a2e1d28af89818d5c24bd89f5366aa0bf7ff784.tar.gz |
mfd: implement mfd_add_devices
This makes it easier to port Linux drivers like PMICs, where a device
tree probed MFD node exists and the driver matching against it then
registers a number of MFD cell devices, which don't have their own
DT compatibles.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220724190006.2160802-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r-- | include/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h index b35b5f397e..191e33f29c 100644 --- a/include/driver.h +++ b/include/driver.h @@ -238,7 +238,7 @@ int device_add_resources(struct device_d *dev, const struct resource *res, int n int device_add_resource(struct device_d *dev, const char *resname, resource_size_t start, resource_size_t size, unsigned int flags); -int device_add_data(struct device_d *dev, void *data, size_t size); +int device_add_data(struct device_d *dev, const void *data, size_t size); /* * register a generic device |