From mboxrd@z Thu Jan 1 00:00:00 1970 From: Moritz Fischer Subject: Re: [PATCH 3/3] nvmem: core: Allow allocating several anonymous nvmem devices Date: Thu, 2 Mar 2017 17:50:45 -0800 Message-ID: References: <1488484223-844-1-git-send-email-albeu@free.fr> <1488484223-844-4-git-send-email-albeu@free.fr> <20170302210351.1f740ffc@bbrezillon> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20170302210351.1f740ffc@bbrezillon> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Boris Brezillon Cc: Alban , Linux Kernel Mailing List , Devicetree List , linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Cyrille Pitchen , Richard Weinberger , Marek Vasut , Brian Norris , David Woodhouse , Mark Rutland , Rob Herring , Maxime Ripard , Srinivas Kandagatla List-Id: devicetree@vger.kernel.org On Thu, Mar 2, 2017 at 12:03 PM, Boris Brezillon wrote: > On Thu, 2 Mar 2017 20:50:23 +0100 > Alban wrote: > >> Currently the nvmem core expect the config to provide a name and ID >> that are then used to create the device name. When no device name is >> given 'nvmem' is used. However if there is several such anonymous >> devices they all get named 'nvmem0', which doesn't work. >> >> To fix this problem use the ID from the config only when the config >> also provides a name. When no name is provided take the uinque ID of >> the nvmem device instead. >> >> Signed-off-by: Alban > > Reviewed-by: Boris Brezillon Reviewed-by: Moritz Fischer Thanks, Moritz -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html