[PATCH 5/6] iio: hmc5843: Add description for mutex lock

Daniel Baluta daniel.baluta at gmail.com
Sun Feb 7 21:34:23 EET 2016


On Sun, Feb 7, 2016 at 8:15 PM, Cristina Moraru
<cristina.moraru09 at gmail.com> wrote:
> Add a comment with the description of the field
> 'lock' from struct hm5843_data.
>
> This patch solves following issue found with checkpatch:
> CHECK: struct mutex definition without comment
>
> Signed-off-by: Cristina Moraru <cristina.moraru09 at gmail.com>

We can ignore this for the moment.
> ---
>  drivers/staging/iio/magnetometer/hmc5843.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/iio/magnetometer/hmc5843.h b/drivers/staging/iio/magnetometer/hmc5843.h
> index cb284cf..956a157 100644
> --- a/drivers/staging/iio/magnetometer/hmc5843.h
> +++ b/drivers/staging/iio/magnetometer/hmc5843.h
> @@ -41,7 +41,7 @@ enum hmc5843_ids {
>   */
>  struct hmc5843_data {
>         struct device *dev;
> -       struct mutex lock;
> +       struct mutex lock; /* lock for device reads / writes */
>         struct regmap *regmap;
>         const struct hmc5843_chip_info *variant;
>         __be16 buffer[8];
> --
> 1.9.1
>


More information about the firefly mailing list