On Thu Aug 20 23:17:31 2026 +0300, Sakari Ailus wrote:
> Fix the following Coccinelle warning:
> 
> ./tps68470.c:164:58-65: WARNING: Consider using %pe to print PTR_ERR()
> 
> by using %pe specifier for printing an error code.
> 
> Signed-off-by: Sakari Ailus <[email protected]>
> Reviewed-by: Ilpo Järvinen <[email protected]>
> Reviewed-by: Ricardo Ribalda <[email protected]>
> Acked-by: Rafael J. Wysocki (Intel) <[email protected]>
> Reviewed-by: Daniel Scally <[email protected]>

Patch committed.

Thanks,
Sakari Ailus

 drivers/platform/x86/intel/int3472/tps68470.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/platform/x86/intel/int3472/tps68470.c 
b/drivers/platform/x86/intel/int3472/tps68470.c
index a77ed32abe55..dc777dbac61f 100644
--- a/drivers/platform/x86/intel/int3472/tps68470.c
+++ b/drivers/platform/x86/intel/int3472/tps68470.c
@@ -161,7 +161,7 @@ static int skl_int3472_tps68470_probe(struct i2c_client 
*client)
 
        regmap = devm_regmap_init_i2c(client, &tps68470_regmap_config);
        if (IS_ERR(regmap)) {
-               dev_err(&client->dev, "Failed to create regmap: %ld\n", 
PTR_ERR(regmap));
+               dev_err(&client->dev, "Failed to create regmap: %pe\n", regmap);
                return PTR_ERR(regmap);
        }
 
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to