Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2987358imm; Fri, 10 Aug 2018 01:37:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPybVAdySaek92+RCyZYcUrEF5nUhj0PjT9XxIwUaAu356XEOZ+auMqy2yAvb65D3x8xHzUx X-Received: by 2002:a63:291:: with SMTP id 139-v6mr5458673pgc.365.1533890268698; Fri, 10 Aug 2018 01:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533890268; cv=none; d=google.com; s=arc-20160816; b=g6eiPz/fRiAwbklH3wf5w7wayDx/vU+z7NhWu5IPHtRSg/n3lYNk0EHfKRwlfJH91I JufUtrZy/j6/RsALNWuyv7X3Q0NWSsiu0hX21pw3sbnLxPJfteeuBmvIEA1Rd0YWclhG oNI56BqUqtmN6ZME+xYWj64f6zKY4rG6BZFLVyOLDql4/gtksfAG6POmqSM94wzZUk9r X/2NUHaFRrh3iDgyWLFJ7vTNK2OcbpxRZ5dzCKCQn8DELvtUY/gSXpDM+8SMT3r7YIvv BHPD4WO0EA+53xT28jvbBqm/ofNvsmUoH0I7t7LXBbHeUg5tcMWRtj/5XSqhhryU9U9S M84Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=CAw/f2FK0lcZDxQOxEKHov5c7KMK2uhUZqJcEueyLBo=; b=UpgvjCN1eulVWtpMijOWd1zs1BJrG9uKDRRLz69f5LUxETw/g1ldf3a77a0LREuEC/ 2CdQ4buXaeHAQkRb3/o7C1pQy86j38Q5GRA9u9hs7rff5Oc378WqMQ/vwcc7lXHKBAL2 vJAOPozxw1QJQcVT2Sjl0MPylWDG3q+bVKU5Z3JuDJL2yqug+xtvJy253R8sc66fZqhp anM/549LjC6C0MNGyCZ9eqhfKj8eZKFjGSCheBy+hfUqzaKh1MXFPj8D0v2+K1mlAjT/ cg2PqS0N7zNtMIfgw28tU5DGDHYPowIKkHsvN4Qzz9KYcnWA6t0mxwamWV01zT/f9CMN lK8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X4TEZb5i; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c38-v6si9552269pgb.489.2018.08.10.01.37.34; Fri, 10 Aug 2018 01:37:48 -0700 (PDT) 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=@linaro.org header.s=google header.b=X4TEZb5i; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727662AbeHJLCf (ORCPT + 99 others); Fri, 10 Aug 2018 07:02:35 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36550 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727563AbeHJLCe (ORCPT ); Fri, 10 Aug 2018 07:02:34 -0400 Received: by mail-wm0-f68.google.com with SMTP id w24-v6so1018114wmc.1 for ; Fri, 10 Aug 2018 01:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CAw/f2FK0lcZDxQOxEKHov5c7KMK2uhUZqJcEueyLBo=; b=X4TEZb5iMqsHHBcD06hAqxarmsqV2GEdfsFigtkr99oKd+3xK79eWUoEDCWWwvXIMC IASvQXdk11HH9iz24852bPU5fYJWf5P1NY+Sw/P5XrF6AQOZnYksOA7SPmPGxJg2WUqX XwRQN6y2IRYNMUJXj4NO6wDRMgt5ihFUeKQVs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CAw/f2FK0lcZDxQOxEKHov5c7KMK2uhUZqJcEueyLBo=; b=D9G7Tmqr1tmvUrqNK31+JYyeeZ0fS2GsgXFadJoPPwTY9ZUJ7mLsLFi3cinWkUnRLF SrEZD+TAZSr+BNrCXdYwKfTIXGV6O5weZC/yRgyBr/T17MTeqVtpVETtVjY3Sm3xehxQ YZQLUsR0fFj7zY8ozr01h74+L8YWbShPJZYJnvx+3rcpvgsUMxSSPfWcYuf8ECmdinKX xOB03izcIQZDYPWIekwKlm+qUDdJtS+cI3eL/u1RA+ykwambD5ew1BCGMJk2by0Qz7Kr ma7HPjYqhpirLkllHyvLfZZV/uWZ4ZQ3g9wZBAWVN0V2oia7ahMCAe3giPJtwVuikqsC KzPw== X-Gm-Message-State: AOUpUlEsokIjw3kGkR3vegq93DME2C5RdKl2WQEP99+Z065pCI8CTrh6 ANmRW9Oc2c54eH/Ipl8aIF3row== X-Received: by 2002:a1c:8f0e:: with SMTP id r14-v6mr912524wmd.79.1533890021185; Fri, 10 Aug 2018 01:33:41 -0700 (PDT) Received: from [192.168.0.18] (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.googlemail.com with ESMTPSA id h5-v6sm10247848wrr.19.2018.08.10.01.33.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 01:33:40 -0700 (PDT) Subject: Re: [PATCH v2 05/29] nvmem: remove the name field from struct nvmem_device To: Bartosz Golaszewski , Jonathan Corbet , Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Grygorii Strashko , "David S . Miller" , Naren , Mauro Carvalho Chehab , Andrew Morton , Lukas Wunner , Dan Carpenter , Florian Fainelli , Ivan Khoronzhuk , Sven Van Asbroeck , Paolo Abeni , Alban Bedel , Rob Herring , David Lechner , Andrew Lunn Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski References: <20180810080526.27207-1-brgl@bgdev.pl> <20180810080526.27207-6-brgl@bgdev.pl> From: Srinivas Kandagatla Message-ID: Date: Fri, 10 Aug 2018 09:33:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180810080526.27207-6-brgl@bgdev.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/08/18 09:05, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > This field is never set and is only used in a single error message. > Remove the field and use nvmem_dev_name() instead. > > Signed-off-by: Bartosz Golaszewski > --- Looks good to me! > drivers/nvmem/core.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c > index 31df2e6d6f72..ab3ced2d9a84 100644 > --- a/drivers/nvmem/core.c > +++ b/drivers/nvmem/core.c > @@ -26,7 +26,6 @@ > #include > > struct nvmem_device { > - const char *name; > struct module *owner; > struct device dev; > int stride; > @@ -712,7 +711,7 @@ static struct nvmem_device *__nvmem_device_get(struct device_node *np, > if (!try_module_get(nvmem->owner)) { > dev_err(&nvmem->dev, > "could not increase module refcount for cell %s\n", > - nvmem->name); > + nvmem_dev_name(nvmem)); > > mutex_lock(&nvmem_mutex); > nvmem->users--; >