* [PATCH] iio: dac: ad5380: aligned '*' each line and drop unneeded blank line @ 2022-06-21 9:23 Jiang Jian 2022-06-21 14:08 ` Andy Shevchenko 0 siblings, 1 reply; 3+ messages in thread From: Jiang Jian @ 2022-06-21 9:23 UTC (permalink / raw) To: jic23; +Cc: lars, Michael.Hennerich, linux-iio, linux-kernel, Jiang Jian Consider '*' alignment in the comments of struct ad5380_chip_info declaration. ... > * @channel_template: channel specification template > * @num_channels: number of channels > * @int_vref: internal vref in uV > -*/ > + */ > While at it, drop the unneeded blank line here. > struct ad5380_chip_info { ... } Signed-off-by: Jiang Jian <jiangjian@cdjrlc.com> --- drivers/iio/dac/ad5380.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iio/dac/ad5380.c b/drivers/iio/dac/ad5380.c index a44c83242fb1..81775152aac6 100644 --- a/drivers/iio/dac/ad5380.c +++ b/drivers/iio/dac/ad5380.c @@ -36,8 +36,7 @@ * @channel_template: channel specification template * @num_channels: number of channels * @int_vref: internal vref in uV -*/ - + */ struct ad5380_chip_info { struct iio_chan_spec channel_template; unsigned int num_channels; @@ -53,7 +52,6 @@ struct ad5380_chip_info { * @pwr_down: whether the chip is currently in power down mode * @lock: lock to protect the data buffer during regmap ops */ - struct ad5380_state { struct regmap *regmap; const struct ad5380_chip_info *chip_info; -- 2.17.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: dac: ad5380: aligned '*' each line and drop unneeded blank line 2022-06-21 9:23 [PATCH] iio: dac: ad5380: aligned '*' each line and drop unneeded blank line Jiang Jian @ 2022-06-21 14:08 ` Andy Shevchenko 2022-06-25 13:26 ` Jonathan Cameron 0 siblings, 1 reply; 3+ messages in thread From: Andy Shevchenko @ 2022-06-21 14:08 UTC (permalink / raw) To: Jiang Jian Cc: Jonathan Cameron, Lars-Peter Clausen, Michael Hennerich, linux-iio, Linux Kernel Mailing List On Tue, Jun 21, 2022 at 11:26 AM Jiang Jian <jiangjian@cdjrlc.com> wrote: > > Consider '*' alignment in the comments of struct ad5380_chip_info declaration. Next time don't forget to bump the version of the patch (use -vX, X = 0,1, ..., with the `git format-patch`) and add a changelog (after cutter '---' line). > ... > > * @channel_template: channel specification template > > * @num_channels: number of channels > > * @int_vref: internal vref in uV > > -*/ > > + */ > > > While at it, drop the unneeded blank line here. > > struct ad5380_chip_info { > ... > } This should be replaced by something simpler, like: While at it, drop the unneeded blank lines. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> I do not think you need to resend this simplest patch and Jonathan will help you this time, but consider the above for future contributions, thanks! > Signed-off-by: Jiang Jian <jiangjian@cdjrlc.com> > --- > drivers/iio/dac/ad5380.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/iio/dac/ad5380.c b/drivers/iio/dac/ad5380.c > index a44c83242fb1..81775152aac6 100644 > --- a/drivers/iio/dac/ad5380.c > +++ b/drivers/iio/dac/ad5380.c > @@ -36,8 +36,7 @@ > * @channel_template: channel specification template > * @num_channels: number of channels > * @int_vref: internal vref in uV > -*/ > - > + */ > struct ad5380_chip_info { > struct iio_chan_spec channel_template; > unsigned int num_channels; > @@ -53,7 +52,6 @@ struct ad5380_chip_info { > * @pwr_down: whether the chip is currently in power down mode > * @lock: lock to protect the data buffer during regmap ops > */ > - > struct ad5380_state { > struct regmap *regmap; > const struct ad5380_chip_info *chip_info; > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: dac: ad5380: aligned '*' each line and drop unneeded blank line 2022-06-21 14:08 ` Andy Shevchenko @ 2022-06-25 13:26 ` Jonathan Cameron 0 siblings, 0 replies; 3+ messages in thread From: Jonathan Cameron @ 2022-06-25 13:26 UTC (permalink / raw) To: Andy Shevchenko Cc: Jiang Jian, Lars-Peter Clausen, Michael Hennerich, linux-iio, Linux Kernel Mailing List On Tue, 21 Jun 2022 16:08:14 +0200 Andy Shevchenko <andy.shevchenko@gmail.com> wrote: > On Tue, Jun 21, 2022 at 11:26 AM Jiang Jian <jiangjian@cdjrlc.com> wrote: > > > > Consider '*' alignment in the comments of struct ad5380_chip_info declaration. > > Next time don't forget to bump the version of the patch (use -vX, X = > 0,1, ..., with the `git format-patch`) and add a changelog (after > cutter '---' line). > > > ... > > > * @channel_template: channel specification template > > > * @num_channels: number of channels > > > * @int_vref: internal vref in uV > > > -*/ > > > + */ > > > > > While at it, drop the unneeded blank line here. > > > struct ad5380_chip_info { > > ... > > } > > This should be replaced by something simpler, like: > While at it, drop the unneeded blank lines. > > Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> > > I do not think you need to resend this simplest patch and Jonathan > will help you this time, but consider the above for future > contributions, thanks! Tweaked and applied to the togreg branch of iio.git which I'll push out initially as testing to let the 0-day bot poke it. Thanks, Jonathan > > > Signed-off-by: Jiang Jian <jiangjian@cdjrlc.com> > > --- > > drivers/iio/dac/ad5380.c | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/drivers/iio/dac/ad5380.c b/drivers/iio/dac/ad5380.c > > index a44c83242fb1..81775152aac6 100644 > > --- a/drivers/iio/dac/ad5380.c > > +++ b/drivers/iio/dac/ad5380.c > > @@ -36,8 +36,7 @@ > > * @channel_template: channel specification template > > * @num_channels: number of channels > > * @int_vref: internal vref in uV > > -*/ > > - > > + */ > > struct ad5380_chip_info { > > struct iio_chan_spec channel_template; > > unsigned int num_channels; > > @@ -53,7 +52,6 @@ struct ad5380_chip_info { > > * @pwr_down: whether the chip is currently in power down mode > > * @lock: lock to protect the data buffer during regmap ops > > */ > > - > > struct ad5380_state { > > struct regmap *regmap; > > const struct ad5380_chip_info *chip_info; > > -- > > 2.17.1 > > > > > -- > With Best Regards, > Andy Shevchenko ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-25 13:17 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-06-21 9:23 [PATCH] iio: dac: ad5380: aligned '*' each line and drop unneeded blank line Jiang Jian 2022-06-21 14:08 ` Andy Shevchenko 2022-06-25 13:26 ` Jonathan Cameron
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox