From: Markus Elfring <Markus.Elfring@web.de>
To: Cong Nguyen <congnt264@gmail.com>,
linux-leds@vger.kernel.org, Lee Jones <lee@kernel.org>,
Pavel Machek <pavel@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>, Luca Weiss <luca@lucaweiss.eu>
Subject: Re: [PATCH] leds: sgm3140: Put the child node reference on success
Date: Wed, 25 Nov 2026 16:15:18 +0100 [thread overview]
Message-ID: <366470ae-41ae-4e3f-9170-8b2f67cfe7fe@web.de> (raw)
In-Reply-To: <20261125134013.2692510-1-congnt264@gmail.com>
…
> Put the reference before returning success.
Please avoid a bit of duplicate source.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v7.4-rc4#n526
How do you think about to apply the attribute “__free(fwnode_handle_put)”
also in the implementation of the function “sgm3140_probe”?
https://elixir.bootlin.com/linux/v7.4-rc1/source/include/linux/property.h#L229
https://elixir.bootlin.com/linux/v7.4-rc1/source/drivers/leds/flash/leds-sgm3140.c#L185-L281
Regards,
Markus
prev parent reply other threads:[~2026-11-25 15:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 13:40 Cong Nguyen
2026-11-25 15:15 ` Markus Elfring [this message]
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=366470ae-41ae-4e3f-9170-8b2f67cfe7fe@web.de \
--to=markus.elfring@web.de \
--cc=congnt264@gmail.com \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=luca@lucaweiss.eu \
--cc=pavel@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®