linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Cc: Chanwoo Choi <cw00.choi@samsung.com>,
	MyungJoo Ham <myungjoo.ham@samsung.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Samuel Ortiz <sameo@linux.intel.com>,
	Sebastian Reichel <sre@kernel.org>,
	Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
	David Woodhouse <dwmw2@infradead.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH v2 2/9] mfd: max77693: Store I2C device type as enum and add default unknown
Date: Wed, 27 May 2015 11:23:34 +0100	[thread overview]
Message-ID: <20150527102334.GD11677@x1> (raw)
In-Reply-To: <1432446213-4886-3-git-send-email-k.kozlowski.k@gmail.com>

On Sun, 24 May 2015, Krzysztof Kozlowski wrote:

> Store the device type (obtained from i2c_device_id) as an enum and add a
> default type of unknown to distinguish from case when this is not set
> at all.
> 
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
> ---
>  include/linux/mfd/max77693-private.h | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)

Applied, thanks.

> diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h
> index ad67b8235a8d..e3c0afff38d3 100644
> --- a/include/linux/mfd/max77693-private.h
> +++ b/include/linux/mfd/max77693-private.h
> @@ -529,13 +529,18 @@ enum max77693_irq_muic {
>  	MAX77693_MUIC_IRQ_NR,
>  };
>  
> +enum max77693_types {
> +	TYPE_MAX77693_UNKNOWN,
> +	TYPE_MAX77693,
> +};
> +
>  struct max77693_dev {
>  	struct device *dev;
>  	struct i2c_client *i2c;		/* 0xCC , PMIC, Charger, Flash LED */
>  	struct i2c_client *muic;	/* 0x4A , MUIC */
>  	struct i2c_client *haptic;	/* 0x90 , Haptic */
>  
> -	int type;
> +	enum max77693_types type;
>  
>  	struct regmap *regmap;
>  	struct regmap *regmap_muic;
> @@ -549,8 +554,4 @@ struct max77693_dev {
>  	int irq;
>  };
>  
> -enum max77693_types {
> -	TYPE_MAX77693,
> -};
> -
>  #endif /*  __LINUX_MFD_MAX77693_PRIV_H */

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

  reply	other threads:[~2015-05-27 10:23 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-24  5:43 [PATCH v2 0/9] regulator/power/mfd/input/extcon: Merge max77843 into max77693 Krzysztof Kozlowski
2015-05-24  5:43 ` [PATCH v2 1/9] mfd/extcon: max77693: Remove unused extern declarations and max77693_dev members Krzysztof Kozlowski
2015-05-24  5:43 ` [PATCH v2 2/9] mfd: max77693: Store I2C device type as enum and add default unknown Krzysztof Kozlowski
2015-05-27 10:23   ` Lee Jones [this message]
2015-05-27 11:13     ` Krzysztof Kozłowski
2015-05-27 12:15       ` Lee Jones
2015-05-27 12:24         ` Lee Jones
2015-05-24  5:43 ` [PATCH v2 3/9] regulator: max77693: Support different register configurations Krzysztof Kozlowski
2015-05-24  5:43 ` [PATCH v2 4/9] extcon/input/mfd/power/regulator: max77693: Move state container to common header Krzysztof Kozlowski
2015-05-26 17:46   ` Dmitry Torokhov
2015-05-27 10:25   ` Lee Jones
2015-05-27 13:55   ` Chanwoo Choi
2015-05-24  5:43 ` [PATCH v2 5/9] extcon/input/mfd/regulator: max77843: Switch to common max77693 state container Krzysztof Kozlowski
2015-05-26 17:46   ` Dmitry Torokhov
2015-05-27 10:25   ` Lee Jones
2015-05-27 13:54   ` Chanwoo Choi
2015-05-24  5:43 ` [PATCH v2 6/9] mfd/extcon: max77693: Rename defines to allow inclusion with max77843 Krzysztof Kozlowski
2015-05-27 10:26   ` Lee Jones
2015-05-27 13:52   ` Chanwoo Choi
2015-05-24  5:43 ` [PATCH v2 7/9] mfd/extcon: max77843: Rename defines to allow inclusion with max77693 Krzysztof Kozlowski
2015-05-27 13:50   ` Chanwoo Choi
2015-05-27 23:42     ` Krzysztof Kozłowski
2015-05-29 11:06       ` Chanwoo Choi
2015-05-24  5:43 ` [PATCH v2 8/9] regulator: max77693: Add support for MAX77843 device Krzysztof Kozlowski
2015-05-24  5:43 ` [PATCH v2 9/9] regulator: Remove the max77843 driver Krzysztof Kozlowski

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=20150527102334.GD11677@x1 \
    --to=lee.jones@linaro.org \
    --cc=broonie@kernel.org \
    --cc=cw00.choi@samsung.com \
    --cc=dbaryshkov@gmail.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=k.kozlowski.k@gmail.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    --cc=sameo@linux.intel.com \
    --cc=sre@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).