linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vivek Gautam <vivek.gautam@codeaurora.org>
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 <vivek.gautam@codeaurora.org>
Subject: [PATCH RESEND 0/2] nvmem: core: Support to get nvmem cell using index
Date: Fri, 23 Dec 2016 16:36:26 +0530	[thread overview]
Message-ID: <1482491186-7059-1-git-send-email-vivek.gautam@codeaurora.org> (raw)
In-Reply-To: <1482490784-4821-1-git-send-email-vivek.gautam@codeaurora.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.

Updated the links to patch and thread in [1] and [2]. Missed them
earlier. The patches 1/2 and 2/2 remain unchanged.

 - Based on torvald's master branch.
 - Tested with next-20161223 tag and a revert to patch [1], to fix
   build issue on arm64 (as indicated in the thread [2]), on
   db410c target. Able to read temperatures from thermal sensors.

[1] 1a339a14b1f2 arm64: setup: introduce kaslr_offset()
[2] https://lkml.org/lkml/2016/12/22/217

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

      parent reply	other threads:[~2016-12-23 11:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-23 10:59 [PATCH 0/2] nvmem: core: Support to get nvmem cell using index Vivek Gautam
2016-12-23 10:59 ` [PATCH 1/2] nvmem: core: Allow getting cell by index in phandle Vivek Gautam
2016-12-23 10:59 ` [PATCH 2/2] nvmem: core: Add a resource managed API to get cell by index Vivek Gautam
2016-12-23 11:06 ` Vivek Gautam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1482491186-7059-1-git-send-email-vivek.gautam@codeaurora.org \
    --to=vivek.gautam@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxime.ripard@free-electrons.com \
    --cc=robh@kernel.org \
    --cc=sboyd@codeaurora.org \
    --cc=srinivas.kandagatla@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).