From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933037AbcFHRlG (ORCPT ); Wed, 8 Jun 2016 13:41:06 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:33610 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932086AbcFHRlC (ORCPT ); Wed, 8 Jun 2016 13:41:02 -0400 Date: Wed, 8 Jun 2016 10:40:50 -0700 From: Guenter Roeck To: Brian Norris Cc: Srinivas Kandagatla , Maxime Ripard , linux-kernel@vger.kernel.org, Brian Norris , Greg Kroah-Hartman Subject: Re: [PATCH] nvmem: fix nvmem_cell_read() return type for !CONFIG_NVMEM Message-ID: <20160608174050.GB16615@roeck-us.net> References: <1465403206-142082-1-git-send-email-briannorris@chromium.org> <20160608164011.GA144473@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160608164011.GA144473@google.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2016 at 09:40:11AM -0700, Brian Norris wrote: > On Wed, Jun 08, 2016 at 09:26:46AM -0700, Brian Norris wrote: > > With CONFIG_NVMEM, nvmem_cell_read() returns void *. With !CONFIG_NVMEM > > it returns char *. Let's make that consistent. Also drop the > > incorrect/inconsistent comment about char * above the nvmem_cell_read() > > definition. > > > > drivers/thermal/mtk_thermal.c is already working around this by casting > > to (u32 *). > > > > Signed-off-by: Brian Norris > > Seems Guenter submitted the same thing a week ago, with no response: > > https://patchwork.kernel.org/patch/9148325/ > > I'll selfishly suggest that mine is better, since it also corrects the > comments :) > Perfectly fine with me. Guenter