From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Dannenberg Subject: Re: [PATCH v4 09/10] power: bq24257: Add various device-specific sysfs properties Date: Fri, 18 Sep 2015 14:08:09 -0500 Message-ID: <20150918190809.GH27772@beast> References: <1442339914-25843-1-git-send-email-dannenberg@ti.com> <1442339914-25843-10-git-send-email-dannenberg@ti.com> <55F923DE.5010809@samsung.com> <20150916195449.GF27772@beast> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Content-Disposition: inline In-Reply-To: <20150916195449.GF27772@beast> Sender: linux-pm-owner@vger.kernel.org To: Krzysztof Kozlowski Cc: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Laurentiu Palcu , Ramakrishna Pallala , linux-pm@vger.kernel.org, devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org On Wed, Sep 16, 2015 at 02:54:53PM -0500, Andreas Dannenberg wrote: > On Wed, Sep 16, 2015 at 05:10:06PM +0900, Krzysztof Kozlowski wrote: > > On 16.09.2015 02:58, Andreas Dannenberg wrote: > > > static DEVICE_ATTR(ovp_voltage, S_IRUGO, bq24257_show_ovp_voltage, NULL); > > > static DEVICE_ATTR(in_dpm_voltage, S_IRUGO, bq24257_show_in_dpm_voltage, NULL); > > > > This applies to previous patches actually: DEVICE_ATTR_RO? > > Ok. Will simplify. Actually I looked into this more and realized that the use of the pre-configured DEVICE_ATTR_* definitions imposes certain function names, which would mean renaming the functions including dropping the bq24257_ prefix those function names have, making the code inconsistent and decreasing the unique-ness of those function names in the global Kernel namespace. So I rather leave the more general DEVICE_ATTR() definitions in place. Regards, -- Andreas Dannenberg Texas Instruments Inc