diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-03-19 00:33:07 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2023-03-21 19:25:25 +0100 |
commit | 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7 (patch) | |
tree | e563d7c30a8216cd27189069ab28519a505e179c /include/linux/i3c | |
parent | 1dae3f1df7005e27a0040855ce8b3c21c262e3b2 (diff) | |
download | linux-stable-0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7.tar.gz linux-stable-0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7.tar.bz2 linux-stable-0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7.zip |
i3c: Make i3c_master_unregister() return void
The function returned zero unconditionally. Switch the return type to void
and simplify the callers accordingly.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230318233311.265186-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'include/linux/i3c')
-rw-r--r-- | include/linux/i3c/master.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i3c/master.h b/include/linux/i3c/master.h index a12cda9dc715..0b52da4f2346 100644 --- a/include/linux/i3c/master.h +++ b/include/linux/i3c/master.h @@ -542,7 +542,7 @@ int i3c_master_register(struct i3c_master_controller *master, struct device *parent, const struct i3c_master_controller_ops *ops, bool secondary); -int i3c_master_unregister(struct i3c_master_controller *master); +void i3c_master_unregister(struct i3c_master_controller *master); /** * i3c_dev_get_master_data() - get master private data attached to an I3C |