All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Lourdes Pedrajas <lu@pplo.net>
Cc: outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org,
	vireshk@kernel.org, johan@kernel.org, elder@kernel.org
Subject: Re: [PATCH] staging: greybus: i2c.c: remove commented out function
Date: Tue, 10 Mar 2020 16:13:32 +0100	[thread overview]
Message-ID: <20200310151332.GD14211@localhost> (raw)
In-Reply-To: <20200309170643.4947-1-lu@pplo.net>

On Mon, Mar 09, 2020 at 06:06:43PM +0100, Lourdes Pedrajas wrote:
> Remove function gb_i2c_smbus_xfer() which is unused.

Sure, why not. But please remove the out-commented pointer in
gb_i2c_algorithm as well.

Also please drop the ".c" in the module prefix; "staging: greybus: i2c:"
is enough to indicate which driver (component) is being modified.
 
> Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
> ---
>  drivers/staging/greybus/i2c.c | 14 --------------
>  1 file changed, 14 deletions(-)
> 
> diff --git a/drivers/staging/greybus/i2c.c b/drivers/staging/greybus/i2c.c
> index ab06fc3b9e7e..c48fa1de89b0 100644
> --- a/drivers/staging/greybus/i2c.c
> +++ b/drivers/staging/greybus/i2c.c
> @@ -215,20 +215,6 @@ static int gb_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
>  	return gb_i2c_transfer_operation(gb_i2c_dev, msgs, msg_count);
>  }
>  
> -#if 0
> -/* Later */
> -static int gb_i2c_smbus_xfer(struct i2c_adapter *adap,
> -			     u16 addr, unsigned short flags, char read_write,
> -			     u8 command, int size, union i2c_smbus_data *data)
> -{
> -	struct gb_i2c_device *gb_i2c_dev;
> -
> -	gb_i2c_dev = i2c_get_adapdata(adap);
> -
> -	return 0;
> -}
> -#endif
> -
>  static u32 gb_i2c_functionality(struct i2c_adapter *adap)
>  {
>  	struct gb_i2c_device *gb_i2c_dev = i2c_get_adapdata(adap);

Johan


      reply	other threads:[~2020-03-10 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-09 17:06 [PATCH] staging: greybus: i2c.c: remove commented out function Lourdes Pedrajas
2020-03-10 15:13 ` Johan Hovold [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=20200310151332.GD14211@localhost \
    --to=johan@kernel.org \
    --cc=elder@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=lu@pplo.net \
    --cc=outreachy-kernel@googlegroups.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.