power: supply: cros_usbpd: Remove dev_err() getting the number of ports
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 29 Nov 2019 21:59:16 +0000 (22:59 +0100)
committerSebastian Reichel <sre@kernel.org>
Thu, 19 Dec 2019 00:58:44 +0000 (01:58 +0100)
commit464aca16487c618534bf2efa4afbc9ece015553a
treefcb7234b1a0bc7f9a4b253600d0b1d676e81c5a9
parenta08990ea11dc3386cc972c817a121525f7bc7321
power: supply: cros_usbpd: Remove dev_err() getting the number of ports

When a device has no support to get the charger number of ports, it
doesn't have to result in a dev_err(), print saying "Could not get
charger port count" using a dev_info() would suffice. In such case,
the dev_info() message is already printed but the dev_err() is annoying,
specially, on those devices that doesn't support the command. So remove
the dev_err().

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cros_usbpd-charger.c