From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH v2 1/7] mfd: Add support for DA9150 combined charger & fuel-gauge device Date: Wed, 10 Sep 2014 10:51:19 +0100 Message-ID: <20140910095119.GO30307@lee--X1> References: <53FF16BC.9050701@gmail.com> <2E89032DDAA8B9408CB92943514A0337AB5144B5@SW-EX-MBX01.diasemi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <2E89032DDAA8B9408CB92943514A0337AB5144B5@SW-EX-MBX01.diasemi.com> Sender: linux-pm-owner@vger.kernel.org To: "Opensource [Adam Thomson]" Cc: Varka Bhadram , Samuel Ortiz , Jonathan Cameron , "linux-iio@vger.kernel.org" , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , "linux-pm@vger.kernel.org" , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "devicetree@vger.kernel.org" , Andrew Morton , Joe Perches , "linux-kernel@vger.kernel.org" , Support Opensource List-Id: devicetree@vger.kernel.org On Tue, 09 Sep 2014, Opensource [Adam Thomson] wrote: > On August 28, 2014 12:47, Varka Bhadram wrote: >=20 > > On 08/28/2014 04:18 PM, Adam Thomson wrote: > >=20 > > (...) > >=20 > > > +static int da9150_probe(struct i2c_client *client, > > > + const struct i2c_device_id *id) > > > +{ > > > + struct da9150 *da9150; > > > + int ret; > > > + > > > + da9150 =3D devm_kzalloc(&client->dev, sizeof(struct da9150), GF= P_KERNEL); > > > + if (da9150 =3D=3D NULL) > > > + return -ENOMEM; > >=20 > > da9150 =3D devm_kzalloc(&client->dev, sizeof(*da9150), GFP_KERNEL); > > if (!da9150) > > return -ENOMEM; >=20 > Ok, no real difference, but can change it. Not functionally, but we like to do things as succinctly as possible. --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog