usb: musb: Add and use inline functions musb_{get,set}_state
authorPaul Cercueil <paul@crapouillou.net>
Wed, 26 Oct 2022 18:26:51 +0000 (19:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Nov 2022 11:39:12 +0000 (12:39 +0100)
commit21acc656a06e912341d9db66c67b58cc7ed071e7
treedeecaf49aa794f0fbc2f3f0fe65525bf08cf37b5
parent1fac1c4da8a225ffbfae294ae36e18a3a65cb87e
usb: musb: Add and use inline functions musb_{get,set}_state

Instead of manipulating musb->xceiv->otg->state directly, use the newly
introduced musb_get_state() and musb_set_state() inline functions.

Later, these inline functions will be modified to get rid of the
musb->xceiv dependency, which prevents the musb code from using the
generic PHY subsystem.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20221026182657.146630-2-paul@crapouillou.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_debugfs.c
drivers/usb/musb/musb_gadget.c
drivers/usb/musb/musb_host.c
drivers/usb/musb/musb_virthub.c