Skip to contentSkip to conversation

extcon: intel-mrfld: Switch to use dev_err_probe()

PATCH In review Andy Shevchenko 3 participants 6 messages Dec 22, 2023 – Feb 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: intel-mrfld: Switch to use dev_err_probe()

Switch to use dev_err_probe() to simplify the error path and unify a message template.

---
 drivers/extcon/extcon-intel-mrfld.c | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)
drivers/extcon/extcon-intel-mrfld.c +6 -12
index 2ee738f844ab..8414222d6597 100644
@@ -250,24 +250,18 @@ static int mrfld_extcon_probe(struct platform_device *pdev)
 		return PTR_ERR(data->edev);
 
 	ret = devm_extcon_dev_register(dev, data->edev);
-	if (ret < 0) {
-		dev_err(dev, "can't register extcon device: %d\n", ret);
-		return ret;
-	}
+	if (ret < 0)
+		return dev_err_probe(dev, ret, "can't register extcon device\n");
 
 	ret = devm_request_threaded_irq(dev, irq, NULL, mrfld_extcon_interrupt,
 					IRQF_ONESHOT | IRQF_SHARED, pdev->name,
 					data);
-	if (ret) {
-		dev_err(dev, "can't register IRQ handler: %d\n", ret);
-		return ret;
-	}
+	if (ret)
+		return dev_err_probe(dev, ret, "can't register IRQ handler\n");
 
 	ret = regmap_read(regmap, BCOVE_ID, &id);
-	if (ret) {
-		dev_err(dev, "can't read PMIC ID: %d\n", ret);
-		return ret;
-	}
+	if (ret)
+		return dev_err_probe(dev, ret, "can't read PMIC ID\n");
 
 	data->id = id;
 
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
#1 lore raw
Quoted 2 lines · Andy Shevchenko

Switch to use dev_err_probe() to simplify the error path and unify a message template.

Any comments? Can these two patches (with [email protected]) be applied?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 6 lines · Andy Shevchenko
Quoted 2 lines · Andy Shevchenko

Switch to use dev_err_probe() to simplify the error path and unify a message template.

Any comments? Can these two patches (with [email protected]) be applied?

Ping?

It's more than two months passed...

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer Acked-by
#3 lore raw
Quoted 11 lines

---------Original Message---------
Sender: Andy Shevchenko <[email protected]>
Date: 2024-02-21 23:52 (GMT+9)
Title: Re: [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe()

Quoted 4 lines · Andy Shevchenko
Quoted 2 lines · Andy Shevchenko

Switch to use dev_err_probe() to simplify the error path and unify a message template.

Quoted 6 lines
Quoted 2 lines

Any comments? Can these two patches (with [email protected]) be applied?

Ping?

It's more than two months passed...

The patch "extcon: intel-mrfld: Switch to use dev_err_probe()" looked good to me.

Chanwoo, please take a look.

maintainer
#4 lore raw
In reply to Andy Shevchenko
Quoted 9 lines

-----Original Message-----
From: Andy Shevchenko <[email protected]>
Sent: Wednesday, February 21, 2024 11:53 PM
To: [email protected]
Cc: MyungJoo Ham <[email protected]>; Chanwoo Choi <[email protected]>
Subject: Re: [PATCH v1 1/1] extcon: intel-mrfld: Switch to use

dev_err_probe()

Quoted 6 lines · Andy Shevchenko
Quoted 4 lines · Andy Shevchenko
Quoted 2 lines

Switch to use dev_err_probe() to simplify the error path and unify a message template.

Quoted 7 lines
Quoted 2 lines

Any comments? Can these two patches (with [email protected]) be applied?

Ping?

It's more than two months passed...

I'm sorry for late reply. I applied it. Thanks.

Best Regards,
Chanwoo Choi

#5 lore raw
Quoted 8 lines · Chanwoo Choi
Quoted 8 lines

-----Original Message-----
From: Andy Shevchenko <[email protected]>
Sent: Wednesday, February 21, 2024 11:53 PM

Quoted 4 lines · Andy Shevchenko
Quoted 2 lines · Andy Shevchenko

Switch to use dev_err_probe() to simplify the error path and unify a message template.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Any comments? Can these two patches (with [email protected]) be applied?

Ping?

It's more than two months passed...

I'm sorry for late reply. I applied it. Thanks.

Thank you, there is the other one. Can it be applied too?

Signature · 2 lines
With Best Regards,
Andy Shevchenko