regulator: rpi-panel-attiny-regulator: Remove redundant of_match_ptr()
authorRuan Jinjie <ruanjinjie@huawei.com>
Mon, 7 Aug 2023 13:41:27 +0000 (21:41 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Aug 2023 19:20:12 +0000 (20:20 +0100)
commit200ee464f7a9a4e8d7a51a2083b28cf240e7cb91
tree2bddda980795a0a5fb9bf414d5207c8dd02d0323
parentc82197491fe02f87ef810a69187596224c1784ba
regulator: rpi-panel-attiny-regulator: Remove redundant of_match_ptr()

The driver depends on CONFIG_OF, so it is not necessary to use
of_match_ptr() here, and __maybe_unused can also be removed.

Even for drivers that do not depend on CONFIG_OF, it's almost always
better to leave out the of_match_ptr(), since the only thing it can
possibly do is to save a few bytes of .text if a driver can be used both
with and without it.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230807134127.2380390-1-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rpi-panel-attiny-regulator.c