serial: icom: remove to_icom_adapter() and icom_kref_release()
authorJiri Slaby <jslaby@suse.cz>
Thu, 21 Apr 2022 08:58:01 +0000 (10:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Apr 2022 14:19:52 +0000 (16:19 +0200)
commit2c334f12dc2523f28be5cda26d15b6fdeb70bddc
treea4751de750b373dfb78618b07a10dd38f7d54c56
parentf73989f58d54b5b01363a2627dd9c99710770d62
serial: icom: remove to_icom_adapter() and icom_kref_release()

Integrate both the to_icom_adapter() macro and icom_kref_release()
wrapper into icom_remove_adapter(). (And keep it icom_kref_release()
name.)

It makes the code easier to follow without complex indirections.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220421085808.24152-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/icom.c