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

Merge tag 'pinctrl-fixes-v3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl

Pull pin control fixes from Linus Walleij:
- Fixed Nomadik errorpath
- Fixed documentation spelling errors
- Forward-declare struct device in a header file
- Remove some extraneous code lines when getting pinctrl states
- Correct the i.MX51 configure register number
- Fix the Nomadik keypad function group list

* tag 'pinctrl-fixes-v3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
pinctrl/nomadik: add kp_b_2 keyboard function group list
pinctrl: imx51: fix .conf_reg of MX51_PAD_SD2_CMD__CSPI_MOSI
trivial: pinctrl core: remove extraneous code lines
pinctrl: header: trivial: declare struct device
Documentation/pinctrl.txt: Fix some misspelled macros
pinctrl/nomadik: fix null in irqdomain errorpath

+13 -16
+3 -3
Documentation/pinctrl.txt
··· 840 840 841 841 static struct pinctrl_map __initdata mapping[] = { 842 842 PIN_MAP_MUX_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", "i2c0"), 843 - PIN_MAP_MUX_CONFIGS_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", i2c_grp_configs), 844 - PIN_MAP_MUX_CONFIGS_PIN("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0scl", i2c_pin_configs), 845 - PIN_MAP_MUX_CONFIGS_PIN("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0sda", i2c_pin_configs), 843 + PIN_MAP_CONFIGS_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", i2c_grp_configs), 844 + PIN_MAP_CONFIGS_PIN("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0scl", i2c_pin_configs), 845 + PIN_MAP_CONFIGS_PIN("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0sda", i2c_pin_configs), 846 846 }; 847 847 848 848 Finally, some devices expect the mapping table to contain certain specific
+3 -10
drivers/pinctrl/core.c
··· 657 657 if (p != NULL) 658 658 return ERR_PTR(-EBUSY); 659 659 660 - p = create_pinctrl(dev); 661 - if (IS_ERR(p)) 662 - return p; 663 - 664 - return p; 660 + return create_pinctrl(dev); 665 661 } 666 662 667 663 /** ··· 734 738 dev_dbg(p->dev, "using pinctrl dummy state (%s)\n", 735 739 name); 736 740 state = create_state(p, name); 737 - if (IS_ERR(state)) 738 - return state; 739 - } else { 740 - return ERR_PTR(-ENODEV); 741 - } 741 + } else 742 + state = ERR_PTR(-ENODEV); 742 743 } 743 744 744 745 return state;
+1 -1
drivers/pinctrl/pinctrl-imx51.c
··· 974 974 IMX_PIN_REG(MX51_PAD_EIM_DA13, NO_PAD, 0x050, 0, 0x000, 0), /* MX51_PAD_EIM_DA13__EIM_DA13 */ 975 975 IMX_PIN_REG(MX51_PAD_EIM_DA14, NO_PAD, 0x054, 0, 0x000, 0), /* MX51_PAD_EIM_DA14__EIM_DA14 */ 976 976 IMX_PIN_REG(MX51_PAD_EIM_DA15, NO_PAD, 0x058, 0, 0x000, 0), /* MX51_PAD_EIM_DA15__EIM_DA15 */ 977 - IMX_PIN_REG(MX51_PAD_SD2_CMD, NO_PAD, 0x3b4, 2, 0x91c, 3), /* MX51_PAD_SD2_CMD__CSPI_MOSI */ 977 + IMX_PIN_REG(MX51_PAD_SD2_CMD, 0x7bc, 0x3b4, 2, 0x91c, 3), /* MX51_PAD_SD2_CMD__CSPI_MOSI */ 978 978 IMX_PIN_REG(MX51_PAD_SD2_CMD, 0x7bc, 0x3b4, 1, 0x9b0, 2), /* MX51_PAD_SD2_CMD__I2C1_SCL */ 979 979 IMX_PIN_REG(MX51_PAD_SD2_CMD, 0x7bc, 0x3b4, 0, 0x000, 0), /* MX51_PAD_SD2_CMD__SD2_CMD */ 980 980 IMX_PIN_REG(MX51_PAD_SD2_CLK, 0x7c0, 0x3b8, 2, 0x914, 3), /* MX51_PAD_SD2_CLK__CSPI_SCLK */
+4 -1
drivers/pinctrl/pinctrl-nomadik-db8500.c
··· 505 505 DB8500_PIN_J3, DB8500_PIN_H2, DB8500_PIN_J2, DB8500_PIN_H1, 506 506 DB8500_PIN_F4, DB8500_PIN_E3, DB8500_PIN_E4, DB8500_PIN_D2, 507 507 DB8500_PIN_C1, DB8500_PIN_D3, DB8500_PIN_C2, DB8500_PIN_D5 }; 508 + static const unsigned kp_b_2_pins[] = { DB8500_PIN_F3, DB8500_PIN_F1, 509 + DB8500_PIN_G3, DB8500_PIN_G2, DB8500_PIN_F4, DB8500_PIN_E3}; 508 510 static const unsigned sm_b_1_pins[] = { DB8500_PIN_C6, DB8500_PIN_B3, 509 511 DB8500_PIN_C4, DB8500_PIN_E6, DB8500_PIN_A3, DB8500_PIN_B6, 510 512 DB8500_PIN_D6, DB8500_PIN_B7, DB8500_PIN_D7, DB8500_PIN_D8, ··· 664 662 DB8500_PIN_GROUP(spi3_b_1, NMK_GPIO_ALT_B), 665 663 DB8500_PIN_GROUP(msp1txrx_b_1, NMK_GPIO_ALT_B), 666 664 DB8500_PIN_GROUP(kp_b_1, NMK_GPIO_ALT_B), 665 + DB8500_PIN_GROUP(kp_b_2, NMK_GPIO_ALT_B), 667 666 DB8500_PIN_GROUP(sm_b_1, NMK_GPIO_ALT_B), 668 667 DB8500_PIN_GROUP(smcs0_b_1, NMK_GPIO_ALT_B), 669 668 DB8500_PIN_GROUP(smcs1_b_1, NMK_GPIO_ALT_B), ··· 754 751 DB8500_FUNC_GROUPS(lcdb, "lcdb_a_1"); 755 752 DB8500_FUNC_GROUPS(lcd, "lcdvsi0_a_1", "lcdvsi1_a_1", "lcd_d0_d7_a_1", 756 753 "lcd_d8_d11_a_1", "lcd_d12_d23_a_1", "lcd_b_1"); 757 - DB8500_FUNC_GROUPS(kp, "kp_a_1", "kp_b_1", "kp_c_1", "kp_oc1_1"); 754 + DB8500_FUNC_GROUPS(kp, "kp_a_1", "kp_b_1", "kp_b_2", "kp_c_1", "kp_oc1_1"); 758 755 DB8500_FUNC_GROUPS(mc2, "mc2_a_1", "mc2rstn_c_1"); 759 756 DB8500_FUNC_GROUPS(ssp1, "ssp1_a_1"); 760 757 DB8500_FUNC_GROUPS(ssp0, "ssp0_a_1");
+1 -1
drivers/pinctrl/pinctrl-nomadik.c
··· 1292 1292 NOMADIK_GPIO_TO_IRQ(pdata->first_gpio), 1293 1293 0, &nmk_gpio_irq_simple_ops, nmk_chip); 1294 1294 if (!nmk_chip->domain) { 1295 - pr_err("%s: Failed to create irqdomain\n", np->full_name); 1295 + dev_err(&dev->dev, "failed to create irqdomain\n"); 1296 1296 ret = -ENOSYS; 1297 1297 goto out; 1298 1298 }
+1
include/linux/pinctrl/consumer.h
··· 20 20 /* This struct is private to the core and should be regarded as a cookie */ 21 21 struct pinctrl; 22 22 struct pinctrl_state; 23 + struct device; 23 24 24 25 #ifdef CONFIG_PINCTRL 25 26