From: Jaehee Park <jhpark1013@gmail.com>
To: Alex Elder <elder@ieee.org>
Cc: johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org,
greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org, outreachy@lists.linux.dev,
Dan Carpenter <dan.carpenter@oracle.com>
Subject: Re: [PATCH v3 2/2] staging: greybus: remove empty callback function
Date: Thu, 14 Apr 2022 16:09:32 -0400 [thread overview]
Message-ID: <20220414200932.GA4147124@jaehee-ThinkPad-X1-Extreme> (raw)
In-Reply-To: <a4e5c567-63dd-f7de-114b-a357075444a2@ieee.org>
On Wed, Apr 13, 2022 at 07:48:03AM -0500, Alex Elder wrote:
> On 4/12/22 11:38 PM, Jaehee Park wrote:
> > Remove the optional remove callback for the soc_codec_dev_gbaudio
> > structure. The only place it is referenced is
> > snd_soc_component_remove() which is only called if the sound_component
> > pointer is non-null. The null function pointers here can be optionally
> > ommitted. When a sound component is registered this way, the remove
> > callback is optional. We can safely remove the whole gbcodec_remove
> > function, which used to be an empty function with a void return type.
>
> Now I think your description is a little long... But that's OK.
>
> This looks good to me. Thank you for responding to all our
> feedback.
>
> Reviewed-by: Alex Elder <elder@linaro.org>
hi Greg, I saw that this was past on to staging-next already. Is it too
late to add Alex to the reviewed by?
> >
> > Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
> > Signed-off-by: Jaehee Park <jhpark1013@gmail.com>
> > ---
> > drivers/staging/greybus/audio_codec.c | 8 --------
> > 1 file changed, 8 deletions(-)
> >
> > diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c
> > index 0f50d1e51e2c..dc030caa64ba 100644
> > --- a/drivers/staging/greybus/audio_codec.c
> > +++ b/drivers/staging/greybus/audio_codec.c
> > @@ -1029,12 +1029,6 @@ static int gbcodec_probe(struct snd_soc_component *comp)
> > return 0;
> > }
> > -static void gbcodec_remove(struct snd_soc_component *comp)
> > -{
> > - /* Empty function for now */
> > - return;
> > -}
> > -
> > static int gbcodec_write(struct snd_soc_component *comp, unsigned int reg,
> > unsigned int value)
> > {
> > @@ -1049,8 +1043,6 @@ static unsigned int gbcodec_read(struct snd_soc_component *comp,
> > static const struct snd_soc_component_driver soc_codec_dev_gbaudio = {
> > .probe = gbcodec_probe,
> > - .remove = gbcodec_remove,
> > -
> > .read = gbcodec_read,
> > .write = gbcodec_write,
> > };
>
next prev parent reply other threads:[~2022-04-14 20:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-13 4:38 [PATCH v3 0/2] staging: greybus: fix warnings reported by checkpatch Jaehee Park
2022-04-13 4:38 ` [PATCH v3 1/2] staging: greybus: correct typo in comment Jaehee Park
2022-04-13 4:38 ` [PATCH v3 2/2] staging: greybus: remove empty callback function Jaehee Park
2022-04-13 5:44 ` Dan Carpenter
2022-04-13 12:48 ` Alex Elder
2022-04-14 20:09 ` Jaehee Park [this message]
2022-04-20 15:15 ` Greg KH
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=20220414200932.GA4147124@jaehee-ThinkPad-X1-Extreme \
--to=jhpark1013@gmail.com \
--cc=dan.carpenter@oracle.com \
--cc=elder@ieee.org \
--cc=elder@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=greybus-dev@lists.linaro.org \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=outreachy@lists.linux.dev \
/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