Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1100645imm; Wed, 8 Aug 2018 10:43:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxhTRXFpg5xEDZxT5rHxxovY2gmlkQ9RbjnCDLNlnqPlnnXHMWPRNVtpgLPG4grlV+erZmr X-Received: by 2002:a17:902:583:: with SMTP id f3-v6mr3427402plf.115.1533750228189; Wed, 08 Aug 2018 10:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533750228; cv=none; d=google.com; s=arc-20160816; b=08oDyFKPBS2PUS9IM795BJY1oQpDTjrcqbPd2vj0CUiAVbDe/JLgyEY8Aa1n8ymu7R g8cizE2rwjnM76nbqU9u+zreGWsnMPQkuV5ErIdwpy2QK8rJc2MVtqKUYqq7XCvGFs7u 0+lIbOLUMaoAZrb3N8uSKswPMnw+b8dXOvOiBHaNofMDK264kd2rwULkGgS6csP9ZRmy WJezMIGHqnipqzBigYQfwVxJlG85vg9Ml3pMoO6oAWDKh8K7vzgwCdPTa7ZO56F4S3lS pdIFX7QWv5cQNdHG8BLEqV494dhu6Xu0QslqmhMHee7nt3aJefQRm8AIi8gcmIay1/pM sQHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=uzUvgscPNw8M3trWj2cQxWMQo/CdhT1fRSE/rXdxwrQ=; b=QhGAV1epNzbCx0W3BonhWsYYhe70EZv4WptbixiOqtbGnX9qcs+suUXgoEYtaC2f8l lJ2io2FESmCJeTqwxC0wGcT76N3kAqQk0JTzZSStOXfdsvHhnInG0PEicMMPjZE3tx8r p//WOmwH4DwA8f8CwTZcbYu/menVDhejVERe/iaGPquS6LvZuBJRdCECJ2C65YL7vrlz fOEjmMIiLjW6eFBqocjRgwEm/MXZmXS125G+CQsdY0r3RdwIVZewVMktvR2iXaHQ5iWE CIDz+oKh646dxiIUCb1PUBsH6UT6YTOWEF1V4JoJLlnhej7Mc828UF7ZJG+/L4lZVlng sk6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RZ1qlbPd; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94-v6si4098647pla.388.2018.08.08.10.43.33; Wed, 08 Aug 2018 10:43: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=@gmail.com header.s=20161025 header.b=RZ1qlbPd; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728695AbeHHUD1 (ORCPT + 99 others); Wed, 8 Aug 2018 16:03:27 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:34401 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727480AbeHHUD1 (ORCPT ); Wed, 8 Aug 2018 16:03:27 -0400 Received: by mail-ua0-f194.google.com with SMTP id r15-v6so3332525uao.1; Wed, 08 Aug 2018 10:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uzUvgscPNw8M3trWj2cQxWMQo/CdhT1fRSE/rXdxwrQ=; b=RZ1qlbPdGsoC5/3jTpYFz0SwEO1MWyHMHsZyqkAdvnfC3IOl7K4bcJcobr/Q2tqZyp jy0/gwZU1xJnNZbvtm+8BdL+770fVvR1VoW5VakehVN1Xq3ePk2nl1htVevRS3tEx4A3 gGr5cN1GoQ0SXUfNe8P1vxMyiV4aJStUZmEz5NeZEdUDqvtKaQaaQUnFs11KXI05EfXq FjAQOu1r6JX+2uUHkg9Z1xPfxrssKEKguZ9DK+7aAaWu12Qrke1hrvsemuS7wZOKsN6s qLvaEbdAQdq/1z2mqx/gIxeGRWejgW83yUeOBDE2LF+ZcdO0VD06RjOf4cnu4b79zNN9 6/vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uzUvgscPNw8M3trWj2cQxWMQo/CdhT1fRSE/rXdxwrQ=; b=GW1gBt/TAScOs/xu4a+plk593cZ/ywCLv0Z4U2OdJErqyleWW1SL3kTrddnhhX4WyA SUmLkE2qucY3XWQsSQUkPxhO6esH2fve8Y8WD7UTEsrrle4LqVnagYEaroTI2Du204cQ rPOO8Enkj6hHDm9FP7lr26mMqAI+KvqvxGsrz6EcTx0ilf5ua+hXUKBjmFLD0rSrkEjG dOhFrN/od9Bgx+8bB463xm2T0BwBVhOSahgRouBiYGDhvRSx+o3fCLu5zG28JAdMn1uR +rKV+2yGmZLzsx4I3Ijy7PD+rFv4y+3gcqdJwf9JEo+Lv3IFmcUit0QsITxCdPjBnej4 KGNQ== X-Gm-Message-State: AOUpUlEIiX6FXrZkvpD8JSRl4KspDJRCpHab7n6rPJBnk4j79fdSX2UZ YbSkbFSbg0WxatL1nYWXYMzAVfN2rj89/YsZ29g= X-Received: by 2002:ab0:4025:: with SMTP id h34-v6mr2688667uad.12.1533750162575; Wed, 08 Aug 2018 10:42:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:2149:0:0:0:0:0 with HTTP; Wed, 8 Aug 2018 10:42:42 -0700 (PDT) In-Reply-To: <20180808153150.23444-5-brgl@bgdev.pl> References: <20180808153150.23444-1-brgl@bgdev.pl> <20180808153150.23444-5-brgl@bgdev.pl> From: Andy Shevchenko Date: Wed, 8 Aug 2018 20:42:42 +0300 Message-ID: Subject: Re: [PATCH 04/28] nvmem: provide nvmem_device_name() To: Bartosz Golaszewski Cc: 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" , Srinivas Kandagatla , 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 , Linux Documentation List , Linux Kernel Mailing List , linux-arm Mailing List , linux-i2c , "open list:MEMORY TECHNOLOGY..." , Linux OMAP Mailing List , netdev , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 8, 2018 at 6:31 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Kernel users don't have any means of checking the names of nvmem > devices. Add a routine that returns the name of the nvmem provider. > > This will be useful for nvmem notifier subscribers - otherwise they > can't check what device is being added/removed. > +const char *nvmem_device_name(struct nvmem_device *nvmem) > +{ > + return dev_name(&nvmem->dev); > +} > +EXPORT_SYMBOL_GPL(nvmem_device_name); Just wondering if *_dev_name() is more common pattern in the kernel (at least pci_dev_name() comes immediately to mind). -- With Best Regards, Andy Shevchenko