]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc977c758c045d9366de28b588df74a3900420821
treea4751de750b373dfb78618b07a10dd38f7d54c56
parent2ce97ae7750a0f0e0e29147f19ed2c8603741b92
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