mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeremy Clifton <deaner92@yahoo.com>
To: Alex Elder <elder@ieee.org>, Viresh Kumar <vireshk@kernel.org>,
	Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: outreachy@lists.linux.dev, greybus-dev@lists.linaro.org,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: greybus: Remove unused function 'to_fw_mgmt_connection'
Date: Tue, 13 Oct 2026 17:11:27 -0600	[thread overview]
Message-ID: <c293546a-155e-4d09-9c04-400c257137c3@yahoo.com> (raw)
In-Reply-To: <fc8053fd-5831-48fb-98a5-f3e81323b51e@ieee.org>


On 10/13/26 2:12 PM, Alex Elder wrote:
> On 10/13/26 1:17 PM, Jeremy Dean Clifton wrote:
>> Remove unused function from greybus driver to_fw_mgmt_connection.
>>
>> This function is not exported or called from anywhere tree-wide.
>>
>> Confirmed with git grep and cscope.
>>
>> Signed-off-by: Jeremy Dean Clifton <deaner92@yahoo.com>
> 
> Looks good to me.  Are there other unused functions
> like this?
> 
I did not find any others like this one. There may be some in rtl. I 
think that is going away soon, though.

> Reviewed-by: Alex Elder <elder@riscstar.com>
Thank you
>> ---
>>   drivers/staging/greybus/fw-core.c | 7 -------
>>   1 file changed, 7 deletions(-)
>>
>> diff --git a/drivers/staging/greybus/fw-core.c b/drivers/staging/ 
>> greybus/fw-core.c
>> index 78321be80013..46b35ef55090 100644
>> --- a/drivers/staging/greybus/fw-core.c
>> +++ b/drivers/staging/greybus/fw-core.c
>> @@ -21,13 +21,6 @@ struct gb_fw_core {
>>   static struct spilib_ops *spilib_ops;
>> -struct gb_connection *to_fw_mgmt_connection(struct device *dev)
>> -{
>> -    struct gb_fw_core *fw_core = dev_get_drvdata(dev);
>> -
>> -    return fw_core->mgmt_connection;
>> -}
>> -
>>   static int gb_fw_spi_connection_init(struct gb_connection *connection)
>>   {
>>       int ret;
> 


      reply	other threads:[~2026-10-13 23:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20261013181707.29830-1-deaner92.ref@yahoo.com>
2026-10-13 18:17 ` Jeremy Dean Clifton
2026-10-13 20:12   ` Alex Elder
2026-10-13 23:11     ` Jeremy Clifton [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=c293546a-155e-4d09-9c04-400c257137c3@yahoo.com \
    --to=deaner92@yahoo.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 \
    --cc=vireshk@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®