pinctrl: pinctrl-single: remove unused parameter
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>
This commit is contained in:
committed by
Linus Walleij
parent
81cc4c37ad
commit
8fa2ea202b
@@ -656,10 +656,8 @@ static const struct pinconf_ops pcs_pinconf_ops = {
|
|||||||
* pcs_add_pin() - add a pin to the static per controller pin array
|
* pcs_add_pin() - add a pin to the static per controller pin array
|
||||||
* @pcs: pcs driver instance
|
* @pcs: pcs driver instance
|
||||||
* @offset: register offset from base
|
* @offset: register offset from base
|
||||||
* @pin_pos: unused
|
|
||||||
*/
|
*/
|
||||||
static int pcs_add_pin(struct pcs_device *pcs, unsigned offset,
|
static int pcs_add_pin(struct pcs_device *pcs, unsigned int offset)
|
||||||
unsigned pin_pos)
|
|
||||||
{
|
{
|
||||||
struct pcs_soc_data *pcs_soc = &pcs->socdata;
|
struct pcs_soc_data *pcs_soc = &pcs->socdata;
|
||||||
struct pinctrl_pin_desc *pin;
|
struct pinctrl_pin_desc *pin;
|
||||||
@@ -727,16 +725,14 @@ static int pcs_allocate_pin_table(struct pcs_device *pcs)
|
|||||||
unsigned offset;
|
unsigned offset;
|
||||||
int res;
|
int res;
|
||||||
int byte_num;
|
int byte_num;
|
||||||
int pin_pos = 0;
|
|
||||||
|
|
||||||
if (pcs->bits_per_mux) {
|
if (pcs->bits_per_mux) {
|
||||||
byte_num = (pcs->bits_per_pin * i) / BITS_PER_BYTE;
|
byte_num = (pcs->bits_per_pin * i) / BITS_PER_BYTE;
|
||||||
offset = (byte_num / mux_bytes) * mux_bytes;
|
offset = (byte_num / mux_bytes) * mux_bytes;
|
||||||
pin_pos = i % num_pins_in_register;
|
|
||||||
} else {
|
} else {
|
||||||
offset = i * mux_bytes;
|
offset = i * mux_bytes;
|
||||||
}
|
}
|
||||||
res = pcs_add_pin(pcs, offset, pin_pos);
|
res = pcs_add_pin(pcs, offset);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
dev_err(pcs->dev, "error adding pins: %i\n", res);
|
dev_err(pcs->dev, "error adding pins: %i\n", res);
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Reference in New Issue
Block a user