Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Akari Tsuyukusa and committed by
Linus Walleij
ca3299dc d8c128fb

-2
-1
drivers/pinctrl/mediatek/pinctrl-mt8365.c
··· 456 456 .smt_offset = 0x0470, 457 457 .pullen_offset = 0x0860, 458 458 .pullsel_offset = 0x0900, 459 - .drv_offset = 0x0710, 460 459 .type1_start = 145, 461 460 .type1_end = 145, 462 461 .port_shf = 4,
-1
drivers/pinctrl/mediatek/pinctrl-mtk-common.h
··· 263 263 unsigned int smt_offset; 264 264 unsigned int pullen_offset; 265 265 unsigned int pullsel_offset; 266 - unsigned int drv_offset; 267 266 unsigned int dout_offset; 268 267 unsigned int din_offset; 269 268 unsigned int pinmux_offset;