From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030429AbcLWLAc (ORCPT ); Fri, 23 Dec 2016 06:00:32 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:41384 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030316AbcLWLAB (ORCPT ); Fri, 23 Dec 2016 06:00:01 -0500 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 93C0A6166C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=vivek.gautam@codeaurora.org From: Vivek Gautam To: srinivas.kandagatla@linaro.org, maxime.ripard@free-electrons.com Cc: robh@kernel.org, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vivek Gautam Subject: [PATCH 0/2] nvmem: core: Support to get nvmem cell using index Date: Fri, 23 Dec 2016 16:29:42 +0530 Message-Id: <1482490784-4821-1-git-send-email-vivek.gautam@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Couple of patches to support getting nvmem cell using cell index. Usually when we have only one nvmem cell for a device, we may not want to add a nvmem-cell-names property to the device node. With these patches, we can now get a cell using phandle and the cell index. - Based on torvald's master branch. - Tested with next-20161223 tag and a revert to patch [1], to fix build issue on arm64, on db410c target. Able to read temperatures from thermal sensors. Vivek Gautam (2): nvmem: core: Allow getting cell by index in phandle nvmem: core: Add a resource managed API to get cell by index drivers/nvmem/core.c | 68 +++++++++++++++++++++++++++++++++++++----- include/linux/nvmem-consumer.h | 19 +++++++++++- 2 files changed, 79 insertions(+), 8 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project