From: Lee Jones <lee.jones@linaro.org>
To: Keerthy <j-keerthy@ti.com>
Cc: linux-omap@vger.kernel.org, lgirdwood@gmail.com,
broonie@kernel.org, linux-kernel@vger.kernel.org,
sameo@linux.intel.com
Subject: Re: [PATCH v2 8/9] regulator: palmas: add driver data and modularize the probe
Date: Fri, 27 Jun 2014 09:23:51 +0100 [thread overview]
Message-ID: <20140627082351.GE19645@lee--X1> (raw)
In-Reply-To: <1403085540-20014-9-git-send-email-j-keerthy@ti.com>
On Wed, 18 Jun 2014, Keerthy wrote:
> add driver data and modularize the probe.
Nit: This is a sentence, it should start with a capital letter.
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> ---
>
> Changes in V2:
>
> * Fixed the order of variable declarations.
>
> drivers/mfd/palmas.c | 44 +--
> drivers/regulator/palmas-regulator.c | 658 ++++++++++++++++++++--------------
> 2 files changed, 396 insertions(+), 306 deletions(-)
>
> diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c
> index c12759d..28cb048 100644
> --- a/drivers/mfd/palmas.c
> +++ b/drivers/mfd/palmas.c
> @@ -25,42 +25,6 @@
> #include <linux/mfd/palmas.h>
> #include <linux/of_device.h>
>
> -#define EXTERNAL_REQUESTOR(_id, _offset, _pos) \
> - [PALMAS_EXTERNAL_REQSTR_ID_##_id] = { \
> - .id = PALMAS_EXTERNAL_REQSTR_ID_##_id, \
> - .reg_offset = _offset, \
> - .bit_pos = _pos, \
> - }
> -
> -static struct palmas_sleep_requestor_info sleep_req_info[] = {
> - EXTERNAL_REQUESTOR(REGEN1, 0, 0),
> - EXTERNAL_REQUESTOR(REGEN2, 0, 1),
> - EXTERNAL_REQUESTOR(SYSEN1, 0, 2),
> - EXTERNAL_REQUESTOR(SYSEN2, 0, 3),
> - EXTERNAL_REQUESTOR(CLK32KG, 0, 4),
> - EXTERNAL_REQUESTOR(CLK32KGAUDIO, 0, 5),
> - EXTERNAL_REQUESTOR(REGEN3, 0, 6),
> - EXTERNAL_REQUESTOR(SMPS12, 1, 0),
> - EXTERNAL_REQUESTOR(SMPS3, 1, 1),
> - EXTERNAL_REQUESTOR(SMPS45, 1, 2),
> - EXTERNAL_REQUESTOR(SMPS6, 1, 3),
> - EXTERNAL_REQUESTOR(SMPS7, 1, 4),
> - EXTERNAL_REQUESTOR(SMPS8, 1, 5),
> - EXTERNAL_REQUESTOR(SMPS9, 1, 6),
> - EXTERNAL_REQUESTOR(SMPS10, 1, 7),
> - EXTERNAL_REQUESTOR(LDO1, 2, 0),
> - EXTERNAL_REQUESTOR(LDO2, 2, 1),
> - EXTERNAL_REQUESTOR(LDO3, 2, 2),
> - EXTERNAL_REQUESTOR(LDO4, 2, 3),
> - EXTERNAL_REQUESTOR(LDO5, 2, 4),
> - EXTERNAL_REQUESTOR(LDO6, 2, 5),
> - EXTERNAL_REQUESTOR(LDO7, 2, 6),
> - EXTERNAL_REQUESTOR(LDO8, 2, 7),
> - EXTERNAL_REQUESTOR(LDO9, 3, 0),
> - EXTERNAL_REQUESTOR(LDOLN, 3, 1),
> - EXTERNAL_REQUESTOR(LDOUSB, 3, 2),
> -};
> -
Happy with this, good riddance.
> static const struct regmap_config palmas_regmap_config[PALMAS_NUM_CLIENTS] = {
> {
> .reg_bits = 8,
> @@ -365,10 +329,10 @@ static struct regmap_irq_chip tps65917_irq_chip = {
> int palmas_ext_control_req_config(struct palmas *palmas,
> enum palmas_external_requestor_id id, int ext_ctrl, bool enable)
> {
> + struct palmas_pmic_driver_data *pmic_ddata = palmas->pmic_ddata;
> int preq_mask_bit = 0;
> int reg_add = 0;
> - int bit_pos;
> - int ret;
> + int bit_pos, ret;
I don't like this change.
[...]
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Lee Jones <lee.jones@linaro.org>
To: Keerthy <j-keerthy@ti.com>
Cc: linux-omap@vger.kernel.org, lgirdwood@gmail.com,
broonie@kernel.org, linux-kernel@vger.kernel.org,
sameo@linux.intel.com
Subject: Re: [PATCH v2 8/9] regulator: palmas: add driver data and modularize the probe
Date: Fri, 27 Jun 2014 09:23:51 +0100 [thread overview]
Message-ID: <20140627082351.GE19645@lee--X1> (raw)
In-Reply-To: <1403085540-20014-9-git-send-email-j-keerthy@ti.com>
On Wed, 18 Jun 2014, Keerthy wrote:
> add driver data and modularize the probe.
Nit: This is a sentence, it should start with a capital letter.
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> ---
>
> Changes in V2:
>
> * Fixed the order of variable declarations.
>
> drivers/mfd/palmas.c | 44 +--
> drivers/regulator/palmas-regulator.c | 658 ++++++++++++++++++++--------------
> 2 files changed, 396 insertions(+), 306 deletions(-)
>
> diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c
> index c12759d..28cb048 100644
> --- a/drivers/mfd/palmas.c
> +++ b/drivers/mfd/palmas.c
> @@ -25,42 +25,6 @@
> #include <linux/mfd/palmas.h>
> #include <linux/of_device.h>
>
> -#define EXTERNAL_REQUESTOR(_id, _offset, _pos) \
> - [PALMAS_EXTERNAL_REQSTR_ID_##_id] = { \
> - .id = PALMAS_EXTERNAL_REQSTR_ID_##_id, \
> - .reg_offset = _offset, \
> - .bit_pos = _pos, \
> - }
> -
> -static struct palmas_sleep_requestor_info sleep_req_info[] = {
> - EXTERNAL_REQUESTOR(REGEN1, 0, 0),
> - EXTERNAL_REQUESTOR(REGEN2, 0, 1),
> - EXTERNAL_REQUESTOR(SYSEN1, 0, 2),
> - EXTERNAL_REQUESTOR(SYSEN2, 0, 3),
> - EXTERNAL_REQUESTOR(CLK32KG, 0, 4),
> - EXTERNAL_REQUESTOR(CLK32KGAUDIO, 0, 5),
> - EXTERNAL_REQUESTOR(REGEN3, 0, 6),
> - EXTERNAL_REQUESTOR(SMPS12, 1, 0),
> - EXTERNAL_REQUESTOR(SMPS3, 1, 1),
> - EXTERNAL_REQUESTOR(SMPS45, 1, 2),
> - EXTERNAL_REQUESTOR(SMPS6, 1, 3),
> - EXTERNAL_REQUESTOR(SMPS7, 1, 4),
> - EXTERNAL_REQUESTOR(SMPS8, 1, 5),
> - EXTERNAL_REQUESTOR(SMPS9, 1, 6),
> - EXTERNAL_REQUESTOR(SMPS10, 1, 7),
> - EXTERNAL_REQUESTOR(LDO1, 2, 0),
> - EXTERNAL_REQUESTOR(LDO2, 2, 1),
> - EXTERNAL_REQUESTOR(LDO3, 2, 2),
> - EXTERNAL_REQUESTOR(LDO4, 2, 3),
> - EXTERNAL_REQUESTOR(LDO5, 2, 4),
> - EXTERNAL_REQUESTOR(LDO6, 2, 5),
> - EXTERNAL_REQUESTOR(LDO7, 2, 6),
> - EXTERNAL_REQUESTOR(LDO8, 2, 7),
> - EXTERNAL_REQUESTOR(LDO9, 3, 0),
> - EXTERNAL_REQUESTOR(LDOLN, 3, 1),
> - EXTERNAL_REQUESTOR(LDOUSB, 3, 2),
> -};
> -
Happy with this, good riddance.
> static const struct regmap_config palmas_regmap_config[PALMAS_NUM_CLIENTS] = {
> {
> .reg_bits = 8,
> @@ -365,10 +329,10 @@ static struct regmap_irq_chip tps65917_irq_chip = {
> int palmas_ext_control_req_config(struct palmas *palmas,
> enum palmas_external_requestor_id id, int ext_ctrl, bool enable)
> {
> + struct palmas_pmic_driver_data *pmic_ddata = palmas->pmic_ddata;
> int preq_mask_bit = 0;
> int reg_add = 0;
> - int bit_pos;
> - int ret;
> + int bit_pos, ret;
I don't like this change.
[...]
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2014-06-27 8:23 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-18 9:58 [PATCH v2 0/9] mfd: tps65917: Add support for for TPS65917 PMIC Keerthy
2014-06-18 9:58 ` Keerthy
2014-06-18 9:58 ` [PATCH v2 1/9] mfd: Add DT bindings for tps65917 PMIC Keerthy
2014-06-18 9:58 ` Keerthy
2014-06-18 9:58 ` [PATCH v2 2/9] regulator: palmas: Add tps65917 compatible string Keerthy
2014-06-18 9:58 ` Keerthy
2014-06-18 9:58 ` [PATCH v2 3/9] mfd: palmas: Add tps65917 specific definitions and enums Keerthy
2014-06-18 9:58 ` Keerthy
2014-06-18 9:58 ` [PATCH v2 4/9] mfd: palmas: Add tps65917 support Keerthy
2014-06-18 9:58 ` Keerthy
2014-06-18 9:58 ` [PATCH v2 5/9] regulator: palmas: Shift the reg_info structure definition to the header file Keerthy
2014-06-18 9:58 ` Keerthy
2014-06-18 9:58 ` [PATCH v2 6/9] mfd: palmas: shift the palmas_sleep_requestor_info " Keerthy
2014-06-18 9:58 ` Keerthy
2014-06-18 9:58 ` [PATCH v2 7/9] regulator: palmas: Add palmas_pmic_driver_data structure Keerthy
2014-06-18 9:58 ` Keerthy
2014-06-27 8:20 ` Lee Jones
2014-06-18 9:58 ` [PATCH v2 8/9] regulator: palmas: add driver data and modularize the probe Keerthy
2014-06-18 9:58 ` Keerthy
2014-06-27 8:23 ` Lee Jones [this message]
2014-06-27 8:23 ` Lee Jones
2014-06-27 9:36 ` Keerthy
2014-06-27 9:36 ` Keerthy
2014-06-18 9:59 ` [PATCH v2 9/9] regulator: palmas: Add tps65917 PMIC support Keerthy
2014-06-18 9:59 ` Keerthy
2014-06-23 11:32 ` [PATCH v2 0/9] mfd: tps65917: Add support for for TPS65917 PMIC Mark Brown
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=20140627082351.GE19645@lee--X1 \
--to=lee.jones@linaro.org \
--cc=broonie@kernel.org \
--cc=j-keerthy@ti.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=sameo@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.