Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752068AbcDXFct (ORCPT ); Sun, 24 Apr 2016 01:32:49 -0400 Received: from mail-yw0-f174.google.com ([209.85.161.174]:35148 "EHLO mail-yw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751368AbcDXFcr (ORCPT ); Sun, 24 Apr 2016 01:32:47 -0400 MIME-Version: 1.0 In-Reply-To: <20160423195345.GD15755@amd> References: <612d9e7b1444a2a26923ca97ef1eb1312016c8e0.1458822334.git.baolin.wang@linaro.org> <20160423195345.GD15755@amd> Date: Sun, 24 Apr 2016 13:32:46 +0800 Message-ID: Subject: Re: [PATCH v8 1/4] gadget: Introduce the usb charger framework From: Baolin Wang To: Pavel Machek Cc: Felipe Balbi , Greg KH , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Peter Chen , Alan Stern , r.baldyga@samsung.com, Yoshihiro Shimoda , Lee Jones , Mark Brown , Charles Keepax , patches@opensource.wolfsonmicro.com, Linux PM list , USB , device-mainlining@lists.linuxfoundation.org, LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 971 Lines: 37 Hi Pavel, On 24 April 2016 at 03:53, Pavel Machek wrote: > Hi! > >> +/* >> + * Sysfs attributes: >> + * >> + * These sysfs attributes are used for showing and setting different type >> + * (SDP/DCP/CDP/ACA) chargers' current limitation. >> + */ >> +static ssize_t sdp_limit_show(struct device *dev, >> + struct device_attribute *attr, >> + char *buf) >> +{ >> + struct usb_charger *uchger = dev_to_uchger(dev); >> + >> + return sprintf(buf, "%d\n", uchger->cur_limit.sdp_cur_limit); >> +} >> + > > Sysfs attributes... can we get appropriate documentation for them? I've send out the v10 patchset which fixed this issue. Thanks. > > Thanks, > Pavel > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- Baolin.wang Best Regards