Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933180AbbFWURc (ORCPT ); Tue, 23 Jun 2015 16:17:32 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:57766 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932187AbbFWURW (ORCPT ); Tue, 23 Jun 2015 16:17:22 -0400 Date: Tue, 23 Jun 2015 22:16:28 +0200 (CEST) From: Stefan Wahren Reply-To: Stefan Wahren To: Srinivas Kandagatla , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org Cc: wxt@rock-chips.com, linux-api@vger.kernel.org, Kumar Gala , Rob Herring , sboyd@codeaurora.org, arnd@arndb.de, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, mporter@konsulko.com, Maxime Ripard , pantelis.antoniou@konsulko.com, devicetree@vger.kernel.org, Mark Brown Message-ID: <272462057.251967.1435090588801.JavaMail.open-xchange@oxbsltgw00.schlund.de> In-Reply-To: <1435014518-26223-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1435014459-26138-1-git-send-email-srinivas.kandagatla@linaro.org> <1435014518-26223-1-git-send-email-srinivas.kandagatla@linaro.org> Subject: Re: [PATCH v6 2/9] nvmem: Add a simple NVMEM framework for consumers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.6.2-Rev18 X-Originating-Client: com.openexchange.ox.gui.dhtml X-Provags-ID: V03:K0:ms7k7Yrt78DN2zTPY0Vujy0jJILGPlL1rqK1gXTgTYXTXKrVAlA kDqU1MkGe/K4kZaSZr3nEJrRK1fZs0eddZXK4KtwCKebg2jmBv7QYto0930atvjPeVTawzw +osU63+WwEc289e96sU3ANFMjVT30aV1qCD/csL2uWRNcXNzz5Q/EQKoARK+or2utmXFCtN /WD08b1AdkQRmNu4+qCKA== X-UI-Out-Filterresults: notjunk:1;V01:K0:I1A1cNcByF0=:vH7uyrlbVmOZ0gsuWfbpuY 7+OQPLZciWSywja3kwo5KuArUt2R9f89luxTRYHjV51WpXLa/WFLoKaMvYdfq9/FD5Cl5KdBW nkkFp4SWkIZ7QUQMwqA2j8vzlH92V2B4VtrEyr6st7e+RzOEBCKoG8VhThrisYDghAz1wg5Cd 2bh77WH2ZW8aUpvN9OybjOK0vg++CLj3ntcerxHJpWuJbYLFDXkoCUQXCjxXnBpj6yI6gpQjH aMERYoqKq7jQw7qWwwoUv2gV8Rpbn2FH78Sgz6+8DsySDHJx4HdyB+QS3AOjxRhDnpT+6bpxF mN1vVVOxicjHguUvuDPONJOxIATTVPS+boTJvF14APlzh3JNXqlhJTXRurW0kA9dvgbCJIM4T jiLdya5gMSqCKOiXtD/xX0uHEIJF8StER1FdhIZ7g6DmY9/Tqnmq7QtsX1fsJBnFWn0RqQVvN eskkNCktHgiIwRoZdDA5HXBOFYTfz6Sn+v1FVutd8DVXfap+NYNFxQXasS5l4HEvv4CfnTqVn geUun2dPgYLvLge3XeAM649b+V+LH4uWddzPkEg9HL5EICGeK1Y/M5ZqEv+W3JDLOhrPE9Tp2 oeGyG8JnNipgHryTgowJb9sANh052Jmkef1FC6IOinqr/wlMS09uWk7qJFvWahw1eaHLQcFI+ nDlSZsC6P8E9lbwUsokQ9F6X/PQxZLiRFXE3vEwrD4GcXpA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1462 Lines: 51 > Srinivas Kandagatla hat am 23. Juni 2015 um > 01:08 geschrieben: > > > [...] > --- /dev/null > +++ b/include/linux/nvmem-consumer.h > @@ -0,0 +1,75 @@ > +/* > + * nvmem framework consumer. > + * > + * Copyright (C) 2015 Srinivas Kandagatla > + * Copyright (C) 2013 Maxime Ripard > + * > + * This file is licensed under the terms of the GNU General Public > + * License version 2. This program is licensed "as is" without any > + * warranty of any kind, whether express or implied. > + */ > + > +#ifndef _LINUX_NVMEM_CONSUMER_H > +#define _LINUX_NVMEM_CONSUMER_H > + > +struct device; Do we need forward declaration of struct device_node too? > +/* consumer cookie */ > [...] > +} > +#endif /* CONFIG_NVMEM */ > + > +#if IS_ENABLED(CONFIG_NVMEM) && IS_ENABLED(CONFIG_OF) > +struct nvmem_cell *of_nvmem_cell_get(struct device_node *np, > + const char *name); > +#else > +static inline struct nvmem_cell *of_nvmem_cell_get(struct device_node *np, > + const char *name) > +{ > + return ERR_PTR(-ENOSYS); > +} > +#endif /* CONFIG_NVMEM && CONFIG_OF */ > + > +#endif /* ifndef _LINUX_NVMEM_CONSUMER_H */ > -- > 1.9.1 -- 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/