Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1796452imu; Thu, 24 Jan 2019 01:59:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN6iSj0JTub8jgFnBzXgH1oz8QO2CusnrIPS/kxelCv3wiz/RhJ8oBU3bx+uE2UCtA6r2OBM X-Received: by 2002:a63:9b11:: with SMTP id r17mr5380878pgd.416.1548323981734; Thu, 24 Jan 2019 01:59:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548323981; cv=none; d=google.com; s=arc-20160816; b=a01Ht34eZjvyGVrdxV1A3hy/snJZV2h3ODaD0p+QYsRLwI7yG6ZNM8fgrO61tWz6Ta AjNimg07gP3VH6JkZQJCdzLGxDqpLtmu8cAoVzF+Vb+NrEjtmRHip4QIcVTlfHCz1dqN +dNDCNej+/d4zCu8i4hWxRHWO3ThxRs8URLJlrPIlQV7AnEOotB3slVXs0BkSOlio2HQ oqNxGlkzo2N34RfgE0ax2PWk1nmym2sKdicWihE1Te95Im3inOaGDIPw7iyLLbK197zn rIFldna7n08gQeioKdTF4BchiPz2NgBhMapM1kb/Tx4tTgVb3gjnqzRHKVHJV5LJQJoY Hr/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L3VZwuXoxJCqRxx7zFF5PGlaahOvFbEUD0ONKqlJd6Q=; b=wpyG+czK9ir1P+OfOWTaM/lMVTq4JVqi3241RMxVOTLh++55bJUx/8Lv/vhloSpBu9 3TTqcA4u7DTQxzqAV6duK+5dr8Jz3Pu+kIE3bjj7dh4kZZedzcHJI+Kfbig2PJM2SkTa qoxKTdMN+rgM40418HkJslXCOnrqN7U/w3uoo+FTD23ftnPad6BkoXyx0YSyGv0RhOBs XKFMTCqIfjZqPmSs+iwFBQyM6m1uziSrHHpZEwinsWoKR1nFjaq3yyJCPLh9m4vFYZrs hJQ69Gjd0+WumiKxZ8JS1ySJ/39mrkr5/Qq4Of3E8T0NodJZ2CXWqB5HpeoFioKE0T+m yzpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bm+G4eaT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2si22027915plz.344.2019.01.24.01.59.26; Thu, 24 Jan 2019 01:59:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bm+G4eaT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727742AbfAXJ6x (ORCPT + 99 others); Thu, 24 Jan 2019 04:58:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:49656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727511AbfAXJ6N (ORCPT ); Thu, 24 Jan 2019 04:58:13 -0500 Received: from earth.universe (dyndsl-037-138-185-084.ewe-ip-backbone.de [37.138.185.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4C2B4218D4; Thu, 24 Jan 2019 09:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548323892; bh=J8t5NH2QAs2Mc8UuXiW+gotimCDZeK2qOiqFBaod/FM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bm+G4eaT9bvivxKSG9IeEq+EHXZyR2IbGX8OR7+R0MdiZf0HFFqy7kzbuZc0ORtnZ +lMLAqPS+mr9EJ22ZSYbOhpdUs96rqvzWIrzCtORJS16419wHGJ/dBe0Yo9TrnwV18 2sC2wD1BWbv/hWMs74TngcPMOOMpJ9tYXgBr8TuI= Received: by earth.universe (Postfix, from userid 1000) id B3EC63C08EA; Wed, 23 Jan 2019 21:54:53 +0100 (CET) Date: Wed, 23 Jan 2019 21:54:53 +0100 From: Sebastian Reichel To: Lubomir Rintel Cc: Rob Herring , Mark Rutland , x86@kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v5 4/7] power: supply: olpc_battery: Move priv data to a struct Message-ID: <20190123205453.f7zdvfv5dgxwzmsy@earth.universe> References: <20190110174005.1202564-1-lkundrak@v3.sk> <20190110174005.1202564-5-lkundrak@v3.sk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sl3o2g26527t362l" Content-Disposition: inline In-Reply-To: <20190110174005.1202564-5-lkundrak@v3.sk> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --sl3o2g26527t362l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Jan 10, 2019 at 06:40:02PM +0100, Lubomir Rintel wrote: > The global variables for private data are not too nice. I'd like some > more, and that would clutter the global name space even further. >=20 > Signed-off-by: Lubomir Rintel > Reviewed-by: Andy Shevchenko [...] > - ret =3D device_create_bin_file(&olpc_bat->dev, &olpc_bat_eeprom); > + ret =3D device_create_bin_file(&data->olpc_bat->dev, &olpc_bat_eeprom); > if (ret) > goto eeprom_failed; > =20 > - ret =3D device_create_file(&olpc_bat->dev, &olpc_bat_error); > + ret =3D device_create_file(&data->olpc_bat->dev, &olpc_bat_error); > if (ret) > goto error_failed; Could you create another patch, that converts this to use the functionality introduced in cef8fe6a382c? I missed the device_create_* functions and you can actually test the change. An example for such a conversion would be "711aebcfe3ba" (ds2781). P.S.: This is not mandatory for applying this patchset of course. -- Sebastian --sl3o2g26527t362l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlxI1J0ACgkQ2O7X88g7 +pqLLw/+MA5CoVRhd+/0NbpJHzrZq5JNa9HigOsWWf0vMXxCpT7lvoOR5JqJibob TPIKlZ1T3VVmTKEhPnIhJt/3zWKZJslm+o7FOn2UvPwKPB10SI2ia1ZzBaUCtc6U S5bhBYg2yV/mmIzKmuwSjfcJJ0yrcj15jZT7LNJ2IX+TlhI8JU9av0vHVt/RlRtU ov4/JTqnONlQUyEhiHT8iBqWz0EB3v0E9Op43Q7Ch4oxWIw8Q8cNuuxdenF0GURU VO96AwXjWwzc4hHw4PAoB9gRa+NrnrTHrZ2J62Y7TQR5XBF5x8iDyCENcYiblFhM iftkVvn2sOoDoRAp1djNpL+AQg8vObGiIfKkrAUImqR2FAPlc9AK/2+h+NJd58zD 9E2FReqELETZvslyC/XsHXSJEHLaQHnsergoWAUbEUJoxQ8PJiEOmZRpSIVezH6A WkQYbgbA0UqMuF9g7earDTmd9Oi8BzR7bIvctWkE/+JPEFV9XvTMemnAL0zOTU6M 0jeBkw6uAxMcF+JjXeRUTYzHCVp64t5SYwHeEbr33ZzAI+YA3H/J8/YGLFAu4xX7 5bE1DMAlBCBIneFqZ1xLL4a0ADUzSMDw7cm8SlrfUse0E73AKt2lifKEnOKsSEtE 2H4aPjRaHCXW4Rxqr/WWfiAjLZdHSZ/nEkyzav+WWyizBGTQ+8A= =Gkee -----END PGP SIGNATURE----- --sl3o2g26527t362l--