public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe()
@ 2023-12-22 16:19 Andy Shevchenko
  2024-02-01 12:09 ` Andy Shevchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2023-12-22 16:19 UTC (permalink / raw)
  To: Andy Shevchenko, linux-kernel; +Cc: MyungJoo Ham, Chanwoo Choi

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

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/extcon/extcon-intel-mrfld.c | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/drivers/extcon/extcon-intel-mrfld.c b/drivers/extcon/extcon-intel-mrfld.c
index 2ee738f844ab..8414222d6597 100644
--- a/drivers/extcon/extcon-intel-mrfld.c
+++ b/drivers/extcon/extcon-intel-mrfld.c
@@ -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;
 
-- 
2.43.0.rc1.1.gbec44491f096


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe()
  2023-12-22 16:19 [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe() Andy Shevchenko
@ 2024-02-01 12:09 ` Andy Shevchenko
  2024-02-21 14:52   ` Andy Shevchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2024-02-01 12:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: MyungJoo Ham, Chanwoo Choi

On Fri, Dec 22, 2023 at 06:19:54PM +0200, Andy Shevchenko wrote:
> Switch to use dev_err_probe() to simplify the error path and
> unify a message template.

Any comments? Can these two patches (with
20231222161854.2955859-1-andriy.shevchenko@linux.intel.com) be applied?

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe()
  2024-02-01 12:09 ` Andy Shevchenko
@ 2024-02-21 14:52   ` Andy Shevchenko
  2024-02-22  1:53     ` MyungJoo Ham
  2024-02-22  5:45     ` Chanwoo Choi
  0 siblings, 2 replies; 6+ messages in thread
From: Andy Shevchenko @ 2024-02-21 14:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: MyungJoo Ham, Chanwoo Choi

On Thu, Feb 01, 2024 at 02:09:23PM +0200, Andy Shevchenko wrote:
> On Fri, Dec 22, 2023 at 06:19:54PM +0200, Andy Shevchenko wrote:
> > Switch to use dev_err_probe() to simplify the error path and
> > unify a message template.
> 
> Any comments? Can these two patches (with
> 20231222161854.2955859-1-andriy.shevchenko@linux.intel.com) be applied?

Ping?

It's more than two months passed...

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Re: [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe()
  2024-02-21 14:52   ` Andy Shevchenko
@ 2024-02-22  1:53     ` MyungJoo Ham
  2024-02-22  5:45     ` Chanwoo Choi
  1 sibling, 0 replies; 6+ messages in thread
From: MyungJoo Ham @ 2024-02-22  1:53 UTC (permalink / raw)
  To: Chanwoo Choi; +Cc: Andy Shevchenko, linux-kernel@vger.kernel.org

>
>---------Original Message---------
>Sender: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>Date: 2024-02-21 23:52 (GMT+9)
>Title: Re: [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe()
> 
>On Thu, Feb 01, 2024 at 02:09:23PM +0200, Andy Shevchenko wrote:
>> On Fri, Dec 22, 2023 at 06:19:54PM +0200, Andy Shevchenko wrote:
>> > Switch to use dev_err_probe() to simplify the error path and
>> > unify a message template.
>>
>> Any comments? Can these two patches (with
>> 20231222161854.2955859-1-andriy.shevchenko@linux.intel.com) 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.

Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe()
  2024-02-21 14:52   ` Andy Shevchenko
  2024-02-22  1:53     ` MyungJoo Ham
@ 2024-02-22  5:45     ` Chanwoo Choi
  2024-02-22 13:18       ` 'Andy Shevchenko'
  1 sibling, 1 reply; 6+ messages in thread
From: Chanwoo Choi @ 2024-02-22  5:45 UTC (permalink / raw)
  To: 'Andy Shevchenko', linux-kernel; +Cc: 'MyungJoo Ham'



> -----Original Message-----
> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Sent: Wednesday, February 21, 2024 11:53 PM
> To: linux-kernel@vger.kernel.org
> Cc: MyungJoo Ham <myungjoo.ham@samsung.com>; Chanwoo Choi
> <cw00.choi@samsung.com>
> Subject: Re: [PATCH v1 1/1] extcon: intel-mrfld: Switch to use
dev_err_probe()
> 
> On Thu, Feb 01, 2024 at 02:09:23PM +0200, Andy Shevchenko wrote:
> > On Fri, Dec 22, 2023 at 06:19:54PM +0200, Andy Shevchenko wrote:
> > > Switch to use dev_err_probe() to simplify the error path and unify a
> > > message template.
> >
> > Any comments? Can these two patches (with
> > 20231222161854.2955859-1-andriy.shevchenko@linux.intel.com) be applied?
> 
> Ping?
> 
> It's more than two months passed...
> 

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

Best Regards,
Chanwoo Choi


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe()
  2024-02-22  5:45     ` Chanwoo Choi
@ 2024-02-22 13:18       ` 'Andy Shevchenko'
  0 siblings, 0 replies; 6+ messages in thread
From: 'Andy Shevchenko' @ 2024-02-22 13:18 UTC (permalink / raw)
  To: Chanwoo Choi; +Cc: linux-kernel, 'MyungJoo Ham'

On Thu, Feb 22, 2024 at 02:45:51PM +0900, Chanwoo Choi wrote:
> > -----Original Message-----
> > From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > Sent: Wednesday, February 21, 2024 11:53 PM
> > On Thu, Feb 01, 2024 at 02:09:23PM +0200, Andy Shevchenko wrote:
> > > On Fri, Dec 22, 2023 at 06:19:54PM +0200, Andy Shevchenko wrote:
> > > > Switch to use dev_err_probe() to simplify the error path and unify a
> > > > message template.
> > >
> > > Any comments? Can these two patches (with
> > > 20231222161854.2955859-1-andriy.shevchenko@linux.intel.com) 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?

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-22 13:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-22 16:19 [PATCH v1 1/1] extcon: intel-mrfld: Switch to use dev_err_probe() Andy Shevchenko
2024-02-01 12:09 ` Andy Shevchenko
2024-02-21 14:52   ` Andy Shevchenko
2024-02-22  1:53     ` MyungJoo Ham
2024-02-22  5:45     ` Chanwoo Choi
2024-02-22 13:18       ` 'Andy Shevchenko'

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox