From: Guenter Roeck <linux@roeck-us.net>
To: michaelsh@nvidia.com
Cc: linux-hwmon@vger.kernel.org, vadimp@nvidia.com
Subject: Re: [PATCH hwmon-next v5 1/3] platform_data/emc2305: define platform data for EMC2305 driver
Date: Tue, 30 Aug 2022 06:31:00 -0700 [thread overview]
Message-ID: <20220830133100.GA229154@roeck-us.net> (raw)
In-Reply-To: <20220810171552.56417-2-michaelsh@nvidia.com>
On Wed, Aug 10, 2022 at 08:15:50PM +0300, michaelsh@nvidia.com wrote:
> From: Michael Shych <michaelsh@nvidia.com>
>
> Introduce platform data structure for EM2305 driver to allow configuration
> device PWMs and thermal zones by passing required platform data
> to the driver. If no platform data is provided, the driver is supposed
> to work with default settings.
>
> Signed-off-by: Michael Shych <michaelsh@nvidia.com>
> Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Applied to hemon-next.
Thanks,
Guenter
> ---
> include/linux/platform_data/emc2305.h | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
> create mode 100644 include/linux/platform_data/emc2305.h
>
> diff --git a/include/linux/platform_data/emc2305.h b/include/linux/platform_data/emc2305.h
> new file mode 100644
> index 000000000000..54d672dd6f7d
> --- /dev/null
> +++ b/include/linux/platform_data/emc2305.h
> @@ -0,0 +1,22 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +
> +#ifndef __LINUX_PLATFORM_DATA_EMC2305__
> +#define __LINUX_PLATFORM_DATA_EMC2305__
> +
> +#define EMC2305_PWM_MAX 5
> +
> +/**
> + * struct emc2305_platform_data - EMC2305 driver platform data
> + * @max_state: maximum cooling state of the cooling device;
> + * @pwm_num: number of active channels;
> + * @pwm_separate: separate PWM settings for every channel;
> + * @pwm_min: array of minimum PWM per channel;
> + */
> +struct emc2305_platform_data {
> + u8 max_state;
> + u8 pwm_num;
> + bool pwm_separate;
> + u8 pwm_min[EMC2305_PWM_MAX];
> +};
> +
> +#endif
next prev parent reply other threads:[~2022-08-30 13:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-10 17:15 [PATCH hwmon-next v5 0/3] Add support for EMC2305 Fan Speed Controller michaelsh
2022-08-10 17:15 ` [PATCH hwmon-next v5 1/3] platform_data/emc2305: define platform data for EMC2305 driver michaelsh
2022-08-30 13:31 ` Guenter Roeck [this message]
2022-08-10 17:15 ` [PATCH hwmon-next v5 2/3] hwmon: (emc2305) add support for EMC2301/2/3/5 RPM-based PWM Fan Speed Controller michaelsh
2022-08-30 13:32 ` Guenter Roeck
2022-08-10 17:15 ` [PATCH hwmon-next v5 3/3] docs: hwmon: add emc2305.rst to docs michaelsh
2022-08-30 13:32 ` Guenter Roeck
-- strict thread matches above, loose matches on Subject: below --
2022-08-02 8:18 [PATCH hwmon-next v5 0/3] Add support for EMC2305 Fan Speed Controller michaelsh
2022-08-02 8:18 ` [PATCH hwmon-next v5 1/3] platform_data/emc2305: define platform data for EMC2305 driver michaelsh
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=20220830133100.GA229154@roeck-us.net \
--to=linux@roeck-us.net \
--cc=linux-hwmon@vger.kernel.org \
--cc=michaelsh@nvidia.com \
--cc=vadimp@nvidia.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox