[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <547565BF.3040304@samsung.com>
Date: Wed, 26 Nov 2014 11:01:43 +0530
From: Pankaj Dubey <pankaj.dubey@...sung.com>
To: Jaewon Kim <jaewon02.kim@...sung.com>,
Kukjin Kim <kgene.kim@...sung.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Dan Murphy <dmurphy@...com>,
Chanwoo Choi <cw00.choi@...sung.com>,
Hyunhee Kim <hyunhee.kim@...sung.com>
Cc: linux-kernel@...r.kernel.org, linux-input@...r.kernel.org,
linux-samsung-soc <linux-samsung-soc@...r.kernel.org>
Subject: Re: [PATCH v2 1/2] Input: add regulator haptic driver
Hi Jaewon,
On Monday 24 November 2014 08:20 PM, Jaewon Kim wrote:
> This patch adds support for haptic driver controlled by
> voltage of regulator. And this driver support for
> Force Feedback interface from input framework
>
> Signed-off-by: Jaewon Kim <jaewon02.kim@...sung.com>
> Signed-off-by: Hyunhee Kim <hyunhee.kim@...sung.com>
> Acked-by: Kyungmin Park <kyungmin.park@...sung.com>
> ---
> .../devicetree/bindings/input/regulator-haptic.txt | 24 ++
> drivers/input/misc/Kconfig | 11 +
> drivers/input/misc/Makefile | 1 +
> drivers/input/misc/regulator-haptic.c | 247 ++++++++++++++++++++
> include/linux/input/regulator-haptic.h | 30 +++
> 5 files changed, 313 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/input/regulator-haptic.txt
> create mode 100644 drivers/input/misc/regulator-haptic.c
> create mode 100644 include/linux/input/regulator-haptic.h
>
> diff --git a/Documentation/devicetree/bindings/input/regulator-haptic.txt b/Documentation/devicetree/bindings/input/regulator-haptic.txt
> new file mode 100644
> index 0000000..5a44e8f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/regulator-haptic.txt
> @@ -0,0 +1,24 @@
> +* Requlator Haptic Device Tree Bindings
Nit: %s/Requlator/Regulator
> +
> +The regulator haptic driver controlled by voltage of regulator.
> +This driver implemented via Force Feedback interface.
> +
[Snip]
> diff --git a/include/linux/input/regulator-haptic.h b/include/linux/input/regulator-haptic.h
> new file mode 100644
> index 0000000..15a629c
> --- /dev/null
> +++ b/include/linux/input/regulator-haptic.h
> @@ -0,0 +1,30 @@
> +/*
> + * Regulator Haptic Platform Data
> + *
> + * Copyright (c) 2014 Samsung Electronics Co., Ltd.
> + * Author: Jaewon Kim <jaewon02.kim@...sung.com>
> + * Author: Hyunhee Kim <hyunhee.kim@...sung.com>
> + *
> + * 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 _REGULATOR_HAPTIC_H
> +
Please define _REGULATOR_HAPTIC_H here as:
#define _REGULATOR_HAPTIC_H
> +/*
> + * struct regulator_haptic_data - Platform device data
> + *
> + * @regulator: Power supply to the haptic motor
> + * @max_volt: maximum voltage value supplied to the haptic motor.
> + * <The unit of the voltage is a micro>
> + * @min_volt: minimum voltage value supplied to the haptic motor.
> + * <The unit of the voltage is a micro>
> + */
> +struct regulator_haptic_data {
> + struct regulator *regulator;
> + unsigned int max_volt;
> + unsigned int min_volt;
> +};
> +
> +#endif /* _REGULATOR_HAPTIC_H */
>
With these two minor fixes please feel free to add:
Reviewed-by: Pankaj Dubey <pankaj.dubey@...sung.com>
Thanks,
Pankaj Dubey
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists