platform/chrome: cros_ec_typec: Use dev_err_probe() more
authorStephen Boyd <swboyd@chromium.org>
Tue, 3 Oct 2023 00:34:26 +0000 (17:34 -0700)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 4 Oct 2023 03:40:54 +0000 (11:40 +0800)
commit2b055bf8ac8492111a62177764e54e0d2614c6b8
tree55bf97b5367f2f6eb85e5526b8c3ed610de981ff
parenta88f6ef679579256ec9561fb1359332df5eaa94d
platform/chrome: cros_ec_typec: Use dev_err_probe() more

There's some debug prints here that can be upgraded to dev_err_probe()
so that we don't have to fish out the error messages when a true error
happens. If they're simply probe defers then the kernel will keep silent
but if they're true errors we'll see the errors in the logs.

Cc: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20231003003429.1378109-3-swboyd@chromium.org
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_typec.c