mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: "Uwe Kleine-König" <ukleinek@kernel.org>, dimitri.fedrau@liebherr.com
Cc: Jean Delvare <jdelvare@suse.com>,
	Jonathan Corbet <corbet@lwn.net>,
	linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org,
	Dimitri Fedrau <dima.fedrau@gmail.com>
Subject: Re: [PATCH v5 1/2] pwm: mc33xs2410: add hwmon support
Date: Thu, 24 Jul 2025 05:59:24 -0700	[thread overview]
Message-ID: <8115ef31-52f8-40aa-9494-55acd0c691d1@roeck-us.net> (raw)
In-Reply-To: <5fblcb3bbwclh4w4dm3s5ue6eplahka5idqz6z4g6ttmhqb24p@jaqznheusac5>

On 7/24/25 00:30, Uwe Kleine-König wrote:
> Hello Dimitri,
> 
> On Wed, Jul 23, 2025 at 07:34:56PM +0200, Dimitri Fedrau via B4 Relay wrote:
>> @@ -361,6 +373,10 @@ static int mc33xs2410_probe(struct spi_device *spi)
>>   	if (ret < 0)
>>   		return dev_err_probe(dev, ret, "Failed to add pwm chip\n");
>>   
>> +	adev = devm_auxiliary_device_create(dev, "hwmon", NULL);
>> +	if (!adev)
>> +		return dev_err_probe(dev, -ENODEV, "Failed to register hwmon device\n");
> 
> Not so nice that you have to make up an error code here. But that's not
> your fault but devm_auxiliary_device_create()'s which returns NULL on
> error instead of an error pointer.
> 
>> +
>>   	return 0;
>>   }
> 
> I applied the patch for the upcoming merge window to
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
> 
> . Expecting the merge window to open on Sunday that's a bit tight
> because I like drivers to be in next for a bit before they enter the
> mainline. The major code change is in drivers/hwmon and I assume Guenter
> is ok with me taking it for 6.17-rc1. If not, please object, then I'll
> not send it to Linus and wait for the 6.18-rc1 PR.
> 

Please go ahead and apply both patches.

Thanks,
Guenter


  reply	other threads:[~2025-07-24 12:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-23 17:34 [PATCH v5 0/2] hwmon: add support for MC33XS2410 hardware Dimitri Fedrau via B4 Relay
2025-07-23 17:34 ` [PATCH v5 1/2] pwm: mc33xs2410: add hwmon support Dimitri Fedrau via B4 Relay
2025-07-24  7:30   ` Uwe Kleine-König
2025-07-24 12:59     ` Guenter Roeck [this message]
2025-07-23 17:34 ` [PATCH v5 2/2] hwmon: add support for MC33XS2410 hardware monitoring Dimitri Fedrau via B4 Relay
2025-07-23 22:38   ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8115ef31-52f8-40aa-9494-55acd0c691d1@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=corbet@lwn.net \
    --cc=dima.fedrau@gmail.com \
    --cc=dimitri.fedrau@liebherr.com \
    --cc=jdelvare@suse.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=ukleinek@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®