usb: phy: tegra: Add clarifying comments about the shared registers
authorDmitry Osipenko <digetx@gmail.com>
Sun, 2 Feb 2020 22:42:59 +0000 (01:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2020 19:12:15 +0000 (11:12 -0800)
commita4a601948fc8d0a9661b83df03f5ee11e903efe6
tree4a155f8910613ad8b0980ff2ebc0db375f804316
parent8099f58f1ecddf4f374f4828a3dff8397c7cbd74
usb: phy: tegra: Add clarifying comments about the shared registers

Tools like Coccinelle may erroneously recommend to use the
devm_platform_ioremap_resource() API for the registers mapping because
these tools are not aware about the implementation details of the driver.
Let's add a clarifying comments to the code, which should help to stop
future attempts to break the driver.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20200202224259.29187-1-digetx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-tegra-usb.c