Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2849198imu; Sun, 6 Jan 2019 11:29:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN7T1E2fKWuwoyU4VUpgHLUP7sh0+xO8+HNY1tm4SgMATSK25kTKxIc/X+ATmaKwDwt5EL6B X-Received: by 2002:a63:fb15:: with SMTP id o21mr8493497pgh.211.1546802989768; Sun, 06 Jan 2019 11:29:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546802989; cv=none; d=google.com; s=arc-20160816; b=IAwZenSRmBr03jVLUzBaz3B31WroxAMVAKtmgALRlLhE7B55/zKUH6O0pNRhTD931U 8F5aD4Skvzw8sYG8NHBuupCoBuripVdxWchkL2uyrqMStSw7McE0sPa3zFKWmyGU0s5y XXz1Ka149lYEskvPL24ybjSfqKEZXekp29qkg0yMq/hO5IlaeGCwIGWi98gZaFtsscEC oElt3/pgNVD8m6ssNd32gMbQUwY91qGoy77z/bwD29JzD+LYYDLA75lx3AXYTLHiAIHT zr3CvZf0oQNpAOoSRet0BRTBiJL2V93s5+6YHbs7MEM8XIZVY51H/PJckRdrmks8OaeQ wKuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=r+QdHkh+ikwqxUZ1TBHfsmHWnithXgSOYvHEWQHJBWk=; b=sefxEoQquYcvHJwABRdbkzwxHZGsBXSd9hJbXXEHh6+0PYkoTV8YmTMu5Htji0lRh4 fdxfglZU1YOF6Qla+NlWxRW1BPBxIkGP1fsKr7E+fR76nvnkZw5SL5T+6wYmrLvnXczN fnEDyrFoM1I/Me7D9z6BV+AZqxiDvVKamnqrqZ8d3KeWAJX4Ham6mRFp2vdEA44iosW3 3kTlH/SBO+SSG8j6pB96skDDfFaAksGnOZTURvqC3Ks0uXKD9t/bmkiXO4yGtZyXCovo AibktRzLgkr/44Ojj1hX4eHGwN+bowLDFNQj/v350rsL7zUhqjHQXLBbdbHRwhH7u8kW UHXQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 191si6129629pgf.41.2019.01.06.11.29.35; Sun, 06 Jan 2019 11:29:49 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726132AbfAFT2b (ORCPT + 99 others); Sun, 6 Jan 2019 14:28:31 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:30519 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbfAFT2b (ORCPT ); Sun, 6 Jan 2019 14:28:31 -0500 Received: from localhost.localdomain (unknown [IPv6:2a02:8108:4840:8f74:143e:fcd5:beb7:2140]) (Authenticated sender: albeu) by smtp3-g21.free.fr (Postfix) with ESMTPA id 0550113F866; Sun, 6 Jan 2019 20:28:23 +0100 (CET) From: Alban Bedel To: Srinivas Kandagatla Cc: linux-kernel@vger.kernel.org, Alban Bedel Subject: [PATCH 0/8] nvmem: Various small fixes and improvements Date: Sun, 6 Jan 2019 20:28:12 +0100 Message-Id: <20190106192820.12558-1-albeu@free.fr> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this series is mostly small bug fixes, but also add a new API to make things simpler in drivers that need to request an optional cell. Alban Bedel (8): nvmem: core: Set the provider read-only when no write callback is given nvmem: core: Fix of_nvmem_cell_get() for optional cells nvmem: Add nvmem_cell_get_optional and devm_nvmem_cell_get_optional nvmem: core: Fix cell lookup when no cell is found nvmem: core: Properly handle connection ID in of_nvmem_device_get() nvmem: core: Always reference the device returned by nvmem_device_get() nvmem: core: Fix device reference leak nvmem: core: Avoid useless iterations in nvmem_cell_get_from_lookup() drivers/nvmem/core.c | 86 +++++++++++++++++++++++++++------- include/linux/nvmem-consumer.h | 16 +++++++ 2 files changed, 86 insertions(+), 16 deletions(-) -- 2.19.1