From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: Re: [PATCH v2 1/8] mfd: AXP20x: Add mfd driver for AXP20x PMIC Date: Mon, 24 Mar 2014 08:34:31 +0000 Message-ID: <20140324083431.GH8541@lee--X1> References: <1394898225-28452-1-git-send-email-carlo@caione.org> <1394898225-28452-2-git-send-email-carlo@caione.org> <20140318155919.GS25478@lee--X1> <20140322165132.GC20668@localhost.fastwebnet.it> Reply-To: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20140322165132.GC20668-bi+AKbBUZKZeIdyRz4JgOMwOAu8XWILU@public.gmane.org> List-Post: , List-Help: , List-Archive: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline To: Carlo Caione Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, emilio-0Z03zUJReD5OxF6Tv1QG9Q@public.gmane.org, wens-jdAy2FN1RRM@public.gmane.org, sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org List-Id: linux-input@vger.kernel.org > > > +static struct mfd_cell axp20x_cells[] =3D { > > > + { > > > + .name =3D "axp20x-pek", > > > + .num_resources =3D ARRAY_SIZE(axp20x_pek_resources), > > > + .resources =3D axp20x_pek_resources, > > > + }, { > > > + .name =3D "axp20x-regulator", > > > + }, > > > +}; > >=20 > > nit: The format of these two structs are inconsistent. >=20 > Uhm, what do you mean? Well you've removed the struct above this one in your reply. Take a look at my reply to you and see the differences between this _two_ structs, this being only one of them. [...] > > > +static const struct i2c_device_id axp20x_i2c_id[] =3D { > > > + { "axp202", AXP202_ID }, > > > + { "axp209", AXP209_ID }, > > > + { } > > > +}; > > > +MODULE_DEVICE_TABLE(i2c, axp20x_i2c_id); > >=20 > > Isn't this redundant now that you're using of_id? >=20 > It is not. Even it is unused it has to be in the driver otherwise the > driver is not loaded. Probably it is something wrong in the I2C core. Sorry, I should have been more specific. The I2C core requires this struct, but the IDs are unused and redundant. Best remove them in order to mitigate any confusion. --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog --=20 You received this message because you are subscribed to the Google Groups "= linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout.