mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
pinctrl: imx27: fix offset calculation in imx_read_2bit
The offset for the 2bit register calculate wrong, this patch fixes the problem. The debugfs printout for oconf, iconfa, iconfb now shows the real values. Cc: [email protected] Signed-off-by: Chris Ruehl <[email protected]> Reviewed-by: Markus Pargmann <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
f17248ed86
commit
e3365d0974
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ static int imx1_read_2bit(struct imx1_pinctrl *ipctl, unsigned int pin_id,
|
|||
u32 reg_offset)
|
||||
{
|
||||
void __iomem *reg = imx1_mem(ipctl, pin_id) + reg_offset;
|
||||
int offset = pin_id % 16;
|
||||
int offset = (pin_id % 16) * 2;
|
||||
|
||||
/* Use the next register if the pin's port pin number is >=16 */
|
||||
if (pin_id % 32 >= 16)
|
||||
|
|
|
|||
Loading…
Reference in a new issue