Re: [PATCH 1/4] pinctrl: mcp23s08: Do not complain about unsupported params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26/01/2018 02:22, Jan Kundrát wrote:
It is expected that some of these operations won't work on each and
every HW. Previously, even a simple `cat
/sys/kernel/debug/pinctrl/spi1.1/pinconf-pins` caused excessive dmesg
output.

Yes it is rather excessive.
Could be downgraded to dev_dbg instead of removed completely?

Reviewed-by: Phil Reid <preid@xxxxxxxxxxxxxxxxx>

Signed-off-by: Jan Kundrát <jan.kundrat@xxxxxxxxx>
---
  drivers/pinctrl/pinctrl-mcp23s08.c | 2 --
  1 file changed, 2 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-mcp23s08.c b/drivers/pinctrl/pinctrl-mcp23s08.c
index 022307dd4b54..fd9d27e8126e 100644
--- a/drivers/pinctrl/pinctrl-mcp23s08.c
+++ b/drivers/pinctrl/pinctrl-mcp23s08.c
@@ -265,7 +265,6 @@ static int mcp_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin,
  		status = (data & BIT(pin)) ? 1 : 0;
  		break;
  	default:
-		dev_err(mcp->dev, "Invalid config param %04x\n", param);
  		return -ENOTSUPP;
  	}
@@ -292,7 +291,6 @@ static int mcp_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,
  			ret = mcp_set_bit(mcp, MCP_GPPU, pin, arg);
  			break;
  		default:
-			dev_err(mcp->dev, "Invalid config param %04x\n", param);
  			return -ENOTSUPP;
  		}
  	}



--
Regards
Phil
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux