Skip to content

Commit ca3299d

Browse files
akku1139linusw
authored andcommitted
pinctrl: mediatek: remove unused drv_offset field
The 'drv_offset' member in 'struct mtk_pinctrl_devdata' has been unused since the driver's inception. Drive strength control for MediaTek pinctrl drivers is actually configured via 'pin_drv_grp', making this specific offset field redundant. Remove the unused field from the common 'mtk_pinctrl_devdata' structure and its corresponding initialization in the mt8365 driver to clean up the code and avoid confusion. Signed-off-by: Akari Tsuyukusa <akkun11.open@gmail.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
1 parent d8c128f commit ca3299d

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/pinctrl/mediatek/pinctrl-mt8365.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ static const struct mtk_pinctrl_devdata mt8365_pinctrl_data = {
456456
.smt_offset = 0x0470,
457457
.pullen_offset = 0x0860,
458458
.pullsel_offset = 0x0900,
459-
.drv_offset = 0x0710,
460459
.type1_start = 145,
461460
.type1_end = 145,
462461
.port_shf = 4,

drivers/pinctrl/mediatek/pinctrl-mtk-common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ struct mtk_pinctrl_devdata {
263263
unsigned int smt_offset;
264264
unsigned int pullen_offset;
265265
unsigned int pullsel_offset;
266-
unsigned int drv_offset;
267266
unsigned int dout_offset;
268267
unsigned int din_offset;
269268
unsigned int pinmux_offset;

0 commit comments

Comments
 (0)