diff options
author | Uwe Kleine-König <uwe@kleine-koenig.org> | 2021-02-06 18:13:48 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-03-08 19:16:03 +0300 |
commit | e71da1fd0e84bc5c87a78b405e40713840eecc80 (patch) | |
tree | a2fe6e0fde7924f1f3b8e365870b893a94728b9e /include/linux/intel-ish-client-if.h | |
parent | 7c746603b5c58939ec823cff5dca3894cc3afb3b (diff) | |
download | linux-e71da1fd0e84bc5c87a78b405e40713840eecc80.tar.xz |
HID: intel-ish-hid: Make remove callback return void
The driver core ignores the return value of struct bus_type::remove()
because there is only little that can be done. To simplify the quest to
make this function return void, let struct ishtp_cl_driver::remove() return
void, too. All users already unconditionally return 0, this commit makes
it obvious that returning an error value is a bad idea.
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/intel-ish-client-if.h')
-rw-r--r-- | include/linux/intel-ish-client-if.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/intel-ish-client-if.h b/include/linux/intel-ish-client-if.h index 0d6b4bc191c5..94669e21dc8b 100644 --- a/include/linux/intel-ish-client-if.h +++ b/include/linux/intel-ish-client-if.h @@ -36,7 +36,7 @@ struct ishtp_cl_driver { const char *name; const guid_t *guid; int (*probe)(struct ishtp_cl_device *dev); - int (*remove)(struct ishtp_cl_device *dev); + void (*remove)(struct ishtp_cl_device *dev); int (*reset)(struct ishtp_cl_device *dev); const struct dev_pm_ops *pm; }; |