[PATCH v2 3/4] iio: hmc5843: Fix comment style warnings

Daniel Baluta daniel.baluta at gmail.com
Sun Feb 14 18:25:46 EET 2016


On Sun, Feb 14, 2016 at 12:24 PM, Cristina Moraru
<cristina.moraru09 at gmail.com> wrote:
> Fix comment style warnings in order to comply with Coding Style
> standard provided by Documentation/CodingStyle.
>
> This patch solves following issue found with checkpatch:
> WARNING: Block comments use a trailing */ on a separate line
>
> Signed-off-by: Cristina Moraru <cristina.moraru09 at gmail.com>
> CC:             Daniel Baluta <daniel.baluta at intel.com>

Drop this patch. It was already accepted.

> ---
> Changes since v1:
>         Removed extra comment line
>  drivers/staging/iio/magnetometer/hmc5843.h      | 5 ++---
>  drivers/staging/iio/magnetometer/hmc5843_core.c | 1 -
>  drivers/staging/iio/magnetometer/hmc5843_i2c.c  | 3 +--
>  drivers/staging/iio/magnetometer/hmc5843_spi.c  | 3 +--
>  4 files changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/iio/magnetometer/hmc5843.h b/drivers/staging/iio/magnetometer/hmc5843.h
> index 06f35d3..76a5d74 100644
> --- a/drivers/staging/iio/magnetometer/hmc5843.h
> +++ b/drivers/staging/iio/magnetometer/hmc5843.h
> @@ -7,8 +7,7 @@
>   * This program is free software; you can redistribute it and/or modify
>   * it under the terms of the GNU General Public License version 2 as
>   * published by the Free Software Foundation.
> - *
> - * */
> + */
>
>  #ifndef HMC5843_CORE_H
>  #define HMC5843_CORE_H
> @@ -38,7 +37,7 @@ enum hmc5843_ids {
>   * @regmap:            hardware access register maps
>   * @variant:           describe chip variants
>   * @buffer:            3x 16-bit channels + padding + 64-bit timestamp
> - **/
> + */
>  struct hmc5843_data {
>         struct device *dev;
>         struct mutex lock;
> diff --git a/drivers/staging/iio/magnetometer/hmc5843_core.c b/drivers/staging/iio/magnetometer/hmc5843_core.c
> index c8f0168..5126b36 100644
> --- a/drivers/staging/iio/magnetometer/hmc5843_core.c
> +++ b/drivers/staging/iio/magnetometer/hmc5843_core.c
> @@ -18,7 +18,6 @@
>   * but WITHOUT ANY WARRANTY; without even the implied warranty of
>   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>   * GNU General Public License for more details.
> - *
>   */
>
>  #include <linux/module.h>
> diff --git a/drivers/staging/iio/magnetometer/hmc5843_i2c.c b/drivers/staging/iio/magnetometer/hmc5843_i2c.c
> index 3e06ceb..3de7f44 100644
> --- a/drivers/staging/iio/magnetometer/hmc5843_i2c.c
> +++ b/drivers/staging/iio/magnetometer/hmc5843_i2c.c
> @@ -7,8 +7,7 @@
>   * This program is free software; you can redistribute it and/or modify
>   * it under the terms of the GNU General Public License version 2 as
>   * published by the Free Software Foundation.
> - *
> - * */
> + */
>
>  #include <linux/module.h>
>  #include <linux/i2c.h>
> diff --git a/drivers/staging/iio/magnetometer/hmc5843_spi.c b/drivers/staging/iio/magnetometer/hmc5843_spi.c
> index 8be1980..535f03a 100644
> --- a/drivers/staging/iio/magnetometer/hmc5843_spi.c
> +++ b/drivers/staging/iio/magnetometer/hmc5843_spi.c
> @@ -6,8 +6,7 @@
>   * This program is free software; you can redistribute it and/or modify
>   * it under the terms of the GNU General Public License version 2 as
>   * published by the Free Software Foundation.
> - *
> - * */
> + */
>
>  #include <linux/module.h>
>  #include <linux/spi/spi.h>
> --
> 1.9.1
>


More information about the firefly mailing list