Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757956AbbFQIAq (ORCPT ); Wed, 17 Jun 2015 04:00:46 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:57437 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753530AbbFQIAg (ORCPT ); Wed, 17 Jun 2015 04:00:36 -0400 Date: Wed, 17 Jun 2015 10:00:06 +0200 From: Sascha Hauer To: Stephen Boyd Cc: Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, arnd@arndb.de, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, pantelis.antoniou@konsulko.com, Rob Herring , Mark Brown , Kumar Gala , mporter@konsulko.com, Maxime Ripard , linux-api@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v5 04/11] nvmem: Add a simple NVMEM framework for consumers Message-ID: <20150617080006.GH6325@pengutronix.de> References: <1432226535-8640-1-git-send-email-srinivas.kandagatla@linaro.org> <1432226593-8817-1-git-send-email-srinivas.kandagatla@linaro.org> <5580A345.30204@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5580A345.30204@codeaurora.org> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:58:13 up 92 days, 19:50, 108 users, load average: 0.09, 0.15, 0.16 User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1292 Lines: 37 On Tue, Jun 16, 2015 at 03:29:25PM -0700, Stephen Boyd wrote: > On 05/21/2015 09:43 AM, Srinivas Kandagatla wrote: > > + /* if it's not end on byte boundary */ > > + if ((nbits + bit_offset) % BITS_PER_BYTE) { > > + /* setup the last byte with msb bits from nvmem */ > > + rc = regmap_raw_read(nvmem->regmap, > > + cell->offset + cell->bytes - 1, &v, 1); > > + *p |= GENMASK(7, (nbits + bit_offset) % BITS_PER_BYTE) & v; > > + > > + } > > + > > + return buf; > > +} > > + > > +/** > > + * nvmem_cell_write(): Write to a given nvmem cell > > This isn't kernel doc notation. It should be like > > nvmem_cell_write - Write to a given nvmem cell Almost. Should be: nvmem_cell_write() - Write to a given nvmem cell Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/