Skip to content

Commit 353fceb

Browse files
Hanna Hawagregkh
authored andcommitted
pinctrl: pinctrl-single: remove unused parameter
[ Upstream commit 8fa2ea2 ] Remove unused parameter 'pin_pos' from pcs_add_pin(). Signed-off-by: Hanna Hawa <hhhawa@amazon.com> Reviewed-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Drew Fustini <drew@beagleboard.org> Link: https://lore.kernel.org/r/20210319152133.28705-3-hhhawa@amazon.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a273c27 commit 353fceb

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎drivers/pinctrl/pinctrl-single.c‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,8 @@ static const struct pinconf_ops pcs_pinconf_ops = {
656656
* pcs_add_pin() - add a pin to the static per controller pin array
657657
* @pcs: pcs driver instance
658658
* @offset: register offset from base
659-
* @pin_pos: unused
660659
*/
661-
static int pcs_add_pin(struct pcs_device *pcs, unsigned offset,
662-
unsigned pin_pos)
660+
static int pcs_add_pin(struct pcs_device *pcs, unsigned int offset)
663661
{
664662
struct pcs_soc_data *pcs_soc = &pcs->socdata;
665663
struct pinctrl_pin_desc *pin;
@@ -729,16 +727,14 @@ static int pcs_allocate_pin_table(struct pcs_device *pcs)
729727
unsigned offset;
730728
int res;
731729
int byte_num;
732-
int pin_pos = 0;
733730

734731
if (pcs->bits_per_mux) {
735732
byte_num = (pcs->bits_per_pin * i) / BITS_PER_BYTE;
736733
offset = (byte_num / mux_bytes) * mux_bytes;
737-
pin_pos = i % num_pins_in_register;
738734
} else {
739735
offset = i * mux_bytes;
740736
}
741-
res = pcs_add_pin(pcs, offset, pin_pos);
737+
res = pcs_add_pin(pcs, offset);
742738
if (res < 0) {
743739
dev_err(pcs->dev, "error adding pins: %i\n", res);
744740
return res;

0 commit comments

Comments
 (0)