From patchwork Wed Jul 26 09:34:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 108743 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp582079qge; Wed, 26 Jul 2017 02:35:02 -0700 (PDT) X-Received: by 10.84.196.100 with SMTP id k91mr278967pld.262.1501061701971; Wed, 26 Jul 2017 02:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501061701; cv=none; d=google.com; s=arc-20160816; b=cTJnllQmETJ9kSOFE4JAtxRiYoFXgFxlyh0jXZ4c7xSEUtidyCAkx/KmK5OzBesAPz aUNE3xg5iu/24wuZniCmW8TSLyDiG7eoZxXlM3wUDSELzURBzl1zpFpHt+Q15tQhkhNM PuUK+YR2xLjhWC5qBDaXPmWrZv009vPaV7oUC+MrktqFrFdy1/lVz91TsIrHn4P1TcgP OVuVsguP+gBQpw2CB14V4C0ZnzAiLAxSVu2OfzJS47c4Z7UNytK+KtOKxh8P00ST9WsZ zBAdMJOXq16O2zq9GHFUzo9F88xVHQ+FLRY7eKjfbfVEbdsxc5W5LpgfsMVH6OgYh6sH DgBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ytuFX65f8z+G2+F9s5sSm5KtuW2kY7Pbx2wfsLXWB5w=; b=zU9YqGjGUZG4/Jl2X0y8Hpy3AD5wVNwA3KQxLyc75wpCAT2cHlrIPpJT6QDPRw+1F5 pyTWXXPxGsHlvT9fy2mkP6w388UjyxCTKPK0e4SLVf3i+oLtMd5f6D51T+qy9AXdHJJQ NNt3BJmjxG519CnJ6YZvXNSUSW2ZfWe63tg+i2Mc+B1bzZZgnxY2ekBJ/KN2dVYdVKCQ 9oD8BuM/UHKCFYSunfdk59ZbLsVUwifWKHWSkybGMRzir08VdvR+imDtvxbYhrdZrNpi x3wST4I8HGuNSArUxfVYIvVXT1TbtyfHNjmo5uu6jtesbchUgj9ZAcCf8i/YGGoGmKNG g9KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=VqktfX55; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si9933308plm.353.2017.07.26.02.35.01; Wed, 26 Jul 2017 02:35:01 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=VqktfX55; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751461AbdGZJe6 (ORCPT + 26 others); Wed, 26 Jul 2017 05:34:58 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:35536 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750816AbdGZJez (ORCPT ); Wed, 26 Jul 2017 05:34:55 -0400 Received: by mail-io0-f170.google.com with SMTP id m88so56941872iod.2 for ; Wed, 26 Jul 2017 02:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ytuFX65f8z+G2+F9s5sSm5KtuW2kY7Pbx2wfsLXWB5w=; b=VqktfX55MtqdqJT/Q8hpVUtfu/6S4j837qQYBpGIKxXDF/rX3WK5wuyiABJ6zjy7+1 Ladk1ll5XF9TO3o6p4S/g2FOuyA7Gml/owBgxXBN/X6PdNyxcAiLWK6IRgcjRXrTiQxO urQnlME8SM8rDEm77DqPc2WIkz7D7ou/PRZ4E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ytuFX65f8z+G2+F9s5sSm5KtuW2kY7Pbx2wfsLXWB5w=; b=nYatRxGPZcbtx/zd5r0QWFZjIyHKOBWJ/+HXEjgf7x7re6WzTJTCciOQehX+EowzNK pAfiF5JyN8pt4dBiZ8FBA0qrZnBZQGN9ch5/La2gXzU23tnfiE2KLwvTHmmFxZfRL6/w bBJGFyLE0lL9di0PjtWfatuYzOrBtGa+RK4NudIzZj73a+sVLNLFDYhpo9Ei3sKRtE0a zPd/ku3aT4uLJFwI+6jAG0G9/vDLS4SQCKJDE9p5Ww2pL4UWVwE6jMsIciI1xhWus7uL KOzJXS4pVB/Jk4ou2MXmFh0QSZqsiaxpF7kEgodnf503VA19Pj0/ugYDQyvUieIKkN0a 2X5w== X-Gm-Message-State: AIVw112jfaAPDlT3Ceuw0qWeqJ8FDWK1tQHHfa+iZsto6GOjg4vysg8r e8+oh1ycmT0IEaSg X-Received: by 10.107.15.32 with SMTP id x32mr323763ioi.168.1501061694465; Wed, 26 Jul 2017 02:34:54 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id c195sm7837169ioe.42.2017.07.26.02.34.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 02:34:54 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Philipp Zabel , Srinivas Kandagatla , Joachim Eastwood , linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/6] nvmem: lpc18xx-eeprom: explicitly request exclusive reset control Date: Wed, 26 Jul 2017 11:34:43 +0200 Message-Id: <20170726093448.2564-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> References: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Philipp Zabel Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting reset lines") started to transition the reset control request API calls to explicitly state whether the driver needs exclusive or shared reset control behavior. Convert all drivers requesting exclusive resets to the explicit API call so the temporary transition helpers can be removed. No functional changes. Cc: Srinivas Kandagatla Cc: Joachim Eastwood Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Philipp Zabel Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/lpc18xx_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.3 diff --git a/drivers/nvmem/lpc18xx_eeprom.c b/drivers/nvmem/lpc18xx_eeprom.c index c81ae4c..6c7e2c4 100644 --- a/drivers/nvmem/lpc18xx_eeprom.c +++ b/drivers/nvmem/lpc18xx_eeprom.c @@ -197,7 +197,7 @@ static int lpc18xx_eeprom_probe(struct platform_device *pdev) return ret; } - rst = devm_reset_control_get(dev, NULL); + rst = devm_reset_control_get_exclusive(dev, NULL); if (IS_ERR(rst)) { dev_err(dev, "failed to get reset: %ld\n", PTR_ERR(rst)); ret = PTR_ERR(rst); From patchwork Wed Jul 26 09:34:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 108748 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp582999qge; Wed, 26 Jul 2017 02:36:12 -0700 (PDT) X-Received: by 10.101.76.206 with SMTP id n14mr307790pgt.154.1501061772012; Wed, 26 Jul 2017 02:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501061772; cv=none; d=google.com; s=arc-20160816; b=c2T7o8KEAJCZefThw1b+LyLBLdjrntry/QfAmEbpV9dv8NNc7nhuN3BSWFi3JEkDu6 zFEZO8+0AKD/kL8cnr2iGPirWdVcPD3qc5F3gXYRUapDK+M1S3ji+/zokBXJzexOmkSW LL4oqwukYxGKewLJIFzZSjRX6sl00r5XNAzphbkde944QbtaNCuZ7w5jxA7lbmlhNCJX K3N76kg9Wo8KFpBsgZJ0r2YY4dkzi99YyY7o7vi8on2Cov85FQ7HXJYQicgHMQEuC/bI UrXRy8p4mfm6NbwCQkwJQZUszZLnYLMzBH+hSJg5bKPBK7tMRoFHIRldAiAqPfRTIo87 L+Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=PBnzcNHDzxfY9Fi9qHBLaUMCbu43WaLnS6WsqoYw4ek=; b=IG5WIoO5necRcHfpi46Q4yXCCCYlJ3R2AqN/7AXOy7PvYO48gbDdXSkKxSGUmLjjB3 XaKRPOZv7RLyajvOFp0UPVNaR1JvW25iPCmkF5Tn+g9lvPumTHy6BMu04DGcunl7ZCpD g85fft+lTwXPUts1WnQzWQVFwsALI/ScxqyH7ay5IYv16t8EXI8NSzGBCEPzqqEksDRw n6kqRyGzE6T2Lng5rvxqojMxx7Revk1VLZ8EDlvHg5qiZlyMV8Fa3jJu6YqwnVh6O2CW 5L+LSpe+1yHbm3dZSIeNBohMbo9isJsuhpXg0OPNJU7CT9GVKKeO1MoksP3o3oL6B3sm XzOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=bM4Yp6Jl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a90si5216868pli.654.2017.07.26.02.36.11; Wed, 26 Jul 2017 02:36:11 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=bM4Yp6Jl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751737AbdGZJgJ (ORCPT + 26 others); Wed, 26 Jul 2017 05:36:09 -0400 Received: from mail-io0-f178.google.com ([209.85.223.178]:33162 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751057AbdGZJe4 (ORCPT ); Wed, 26 Jul 2017 05:34:56 -0400 Received: by mail-io0-f178.google.com with SMTP id j32so44999444iod.0 for ; Wed, 26 Jul 2017 02:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PBnzcNHDzxfY9Fi9qHBLaUMCbu43WaLnS6WsqoYw4ek=; b=bM4Yp6Jl/HQfiXrS5fMMLkMnHvlAWxUnAMv3Nv+J0onErW1dXolQiyoX1lQKkvqdm/ hLp7EE94N+/4in4AT9A6ypPiu9yja074mwb1opP1FDsr7bpSixTZqYX7pYYWJEynkP+z VmmIlA+dOkbSuzqL4yuCRHs2wKn7nuthmSsXU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PBnzcNHDzxfY9Fi9qHBLaUMCbu43WaLnS6WsqoYw4ek=; b=eACNx+krlBLeNkqZWE5MoNI2Nsq8JfDa9Ql4K01FDUdbfVtmngwNNz5uSCnvGZcM2/ IvqFv7baT64cpRcjXmu98Gs1GTuiwt536716ni41cmNhkQb9X3IIL4eBHsYJ355lhpyz 60NTHUztsUgCDuqpfkjG6x1tthn9KTasE8b9lAACAl2gWX1ocM4+pbskv9Ngv43NX7w5 QY0ceRqycfFOQoHJ9KwLcHJ9Nn0z3nWfwYc+0OzZ/fEv0zxWUnrJS65ZBlW9iFo4lzYB CVfymtulIctP+t+7wD8EHVMW3Gw8WGcppLl4taSm7fEzBLv2/apnrQsSW3sqd7dQRPd2 UWKw== X-Gm-Message-State: AIVw112TfkqqgAYRG1FggmymiWr+VtAQ7kiZGzl5ecCnWf+Az3dmiZzN hPQelxakN+FVHSDs2jkCrA== X-Received: by 10.107.170.69 with SMTP id t66mr303769ioe.9.1501061695891; Wed, 26 Jul 2017 02:34:55 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id c195sm7837169ioe.42.2017.07.26.02.34.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 02:34:55 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Rob Herring , Srinivas Kandagatla Subject: [PATCH 2/6] nvmem: Convert to using %pOF instead of full_name Date: Wed, 26 Jul 2017 11:34:44 +0200 Message-Id: <20170726093448.2564-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> References: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rob Herring Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.3 diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 4c49285..b0c6033 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -794,8 +794,8 @@ struct nvmem_cell *of_nvmem_cell_get(struct device_node *np, addr = of_get_property(cell_np, "reg", &len); if (!addr || (len < 2 * sizeof(u32))) { - dev_err(&nvmem->dev, "nvmem: invalid reg on %s\n", - cell_np->full_name); + dev_err(&nvmem->dev, "nvmem: invalid reg on %pOF\n", + cell_np); rval = -EINVAL; goto err_mem; } From patchwork Wed Jul 26 09:34:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 108744 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp582150qge; Wed, 26 Jul 2017 02:35:06 -0700 (PDT) X-Received: by 10.99.49.72 with SMTP id x69mr307706pgx.234.1501061706304; Wed, 26 Jul 2017 02:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501061706; cv=none; d=google.com; s=arc-20160816; b=chtJWEMnmISKaACZ7nrFZsXpHahcWynoc8va/N1P2nCaVzYCqqmU+eIOyfq5XhYvOx LV69Ck9J/bqjKjczy5z67AOflxz/dC0YMkSQK80a7WelBGjztObPPT0VDJW7pMYWxMwp TJsMrc17UmjplIpjzJwx7sWfi8ZtEH3C0tcq3BvRyoczf4+QKSvj6+qWHRYVvZkDu+E7 Mu2NISB2mG6H2q1rfeFOU8Vcz/xCJz5zmMVO+Wjj0GPh3635Rje1xrgefO6ux36pJaaK vr3/I//IsRqLqNO96a/Qvz51YoNrvLNhoT+9tXY1SdBMsHs7TnK+3RMS78h0B+1IIzEs Idvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=NA4A9qlGARR8qhslEU964vooNJBddgGOXO6BGdTL3dU=; b=BvekroroeNZfRXoEIa7fezLnzE2VtsvKwYfyFmNufZTpaFEgKx3+3xlcZ0WhNbFOX2 GVjx9//qnVJgxy/jBmljx8spLJvZ9ThqHor+RtPsRwV5UrvwvEZESqEPOPTKDxqUXyX3 ktNMrHrc6osa+I/fyZqFR+Z54dPciRLW3Y1hYDhJoZrGs2TYRWXfEq/yQ6h3rdWVq5F2 Sj4A3VOrWf7ZDpZXdtIBo8CxvtjfRC6S0zvnMhyT7BVa2CjPV9N+vAXV9UkXSo4DLCJM xefhUzhszrmYlPs4s1KtHyl8bUq0vwPFIlB5EjfS7tPmmH3BT+aykJ1SM0GabaMbmYVS lLUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=Gq8nsIaM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si6556305pgq.678.2017.07.26.02.35.05; Wed, 26 Jul 2017 02:35:06 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=Gq8nsIaM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751551AbdGZJfC (ORCPT + 26 others); Wed, 26 Jul 2017 05:35:02 -0400 Received: from mail-io0-f171.google.com ([209.85.223.171]:38331 "EHLO mail-io0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751421AbdGZJe6 (ORCPT ); Wed, 26 Jul 2017 05:34:58 -0400 Received: by mail-io0-f171.google.com with SMTP id g13so65470577ioj.5 for ; Wed, 26 Jul 2017 02:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NA4A9qlGARR8qhslEU964vooNJBddgGOXO6BGdTL3dU=; b=Gq8nsIaM+FM+47irqTibD+2KUFZ8vvj6ESLxCgXiaHuiJJ/1aathgPTD9cFWNOhdND xuEOuKwqFaxh9+oQFxML7Y/i0pn6kXSrp1HyfpvoghX8nLAr5CQYJqFApBQVTidAYlKk QEuIoMBDAfaEFsR40hRwpy2ElDy4yDcN4KCdY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NA4A9qlGARR8qhslEU964vooNJBddgGOXO6BGdTL3dU=; b=qkm4hrQ0E2BkNTfjBm3kSW1rJvqRTCiuWzUsBXBFhE9XoA0K1Xl6g5iWxM1K2jAbzd hAT6pe14/KZimkPYCqZmqfgshtXDz28AF+3jSx8T91mOejFIEQnkSgNKgIVNoS4egDl9 8khg5OU+rGrYnczbEAxsW3AphCVCeM7jVQk0jjO0TrDE8cAOP5lrBWl7lk1HU4pNSbYA LuAB9neDE8dzRIAeDumpbKv2f6vTDvOhabJqBdTSo1y1Z81HEZJDfksIHCqLgtiw56/X 6k9yOARgA5IJV8P6Clz3j6zioMyA1LHncEB2R0d9JwBEGmX/ziXW2RB2YRJTgPffnwGK rAlg== X-Gm-Message-State: AIVw112SlVnGPJeagbh1RNKnTw7KOHnzX24HhnAVux/E7MfpMYR06mKt DTEfDxvU+DlRoRC+ X-Received: by 10.107.5.72 with SMTP id 69mr270888iof.153.1501061697292; Wed, 26 Jul 2017 02:34:57 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id c195sm7837169ioe.42.2017.07.26.02.34.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 02:34:56 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Frank Wang , Srinivas Kandagatla Subject: [PATCH 3/6] nvmem: rockchip-efuse: amend compatible rk322x-efuse to rk3228-efuse Date: Wed, 26 Jul 2017 11:34:45 +0200 Message-Id: <20170726093448.2564-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> References: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Wang As the comments from Heiko Stuebner that compatible should not contain any placeholders, this patch fix it for rk3228 SoC. Note that this is a fix for v4.13, due to fixing the current non-standard binding name that should not become part of an official kernel release. Signed-off-by: Frank Wang Fixes: 820de1fb69f1 ("nvmem: rockchip-efuse: add support for rk322x-efuse") Acked-by: Rob Herring Reviewed-by: Heiko Stuebner Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt | 2 +- drivers/nvmem/rockchip-efuse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.9.3 diff --git a/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt index 194926f..1ff02afd 100644 --- a/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt +++ b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt @@ -4,7 +4,7 @@ Required properties: - compatible: Should be one of the following. - "rockchip,rk3066a-efuse" - for RK3066a SoCs. - "rockchip,rk3188-efuse" - for RK3188 SoCs. - - "rockchip,rk322x-efuse" - for RK322x SoCs. + - "rockchip,rk3228-efuse" - for RK3228 SoCs. - "rockchip,rk3288-efuse" - for RK3288 SoCs. - "rockchip,rk3399-efuse" - for RK3399 SoCs. - reg: Should contain the registers location and exact eFuse size diff --git a/drivers/nvmem/rockchip-efuse.c b/drivers/nvmem/rockchip-efuse.c index a0d4ede..63e3eb5 100644 --- a/drivers/nvmem/rockchip-efuse.c +++ b/drivers/nvmem/rockchip-efuse.c @@ -170,7 +170,7 @@ static const struct of_device_id rockchip_efuse_match[] = { .data = (void *)&rockchip_rk3288_efuse_read, }, { - .compatible = "rockchip,rk322x-efuse", + .compatible = "rockchip,rk3228-efuse", .data = (void *)&rockchip_rk3288_efuse_read, }, { From patchwork Wed Jul 26 09:34:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 108747 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp582747qge; Wed, 26 Jul 2017 02:35:53 -0700 (PDT) X-Received: by 10.98.104.133 with SMTP id d127mr274942pfc.193.1501061752902; Wed, 26 Jul 2017 02:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501061752; cv=none; d=google.com; s=arc-20160816; b=OLdQwbNXtNKK6Ejwt06vduXjovXWIMYSDd6sGxtvZyxz8dMeXQxDkgCgJTqwntugGX 0LCUpLmWh1gXh1CD48Fkq6JKuE3epzBqLyFv7YB4TMJB+T4HefglHAgoiFE7KOwW77Tf D7ZB5PFYih/05XyH+KpNNyCF5+iYr4+iz9sIyO9rCxx+b5hsdqWYD1C0QSkNubzdYHRl joWWjo5wSTc8wzsnIYfWPuYNUHLnug2BWPy4zKnog3sgjeAK15uxlZxobJnQLc5YIVMG 4MxebwJXXx6R0i5Q7W+j/Kh2yvATUTJbxgK0b2Sca72JOZq1PuLMo0+VCbJd4jqerpYj vsDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=GgMcymkbot3/mx7qd4BVe1HJUoDDuYZvs4u529KanNE=; b=b8PpVq0P7q1E9SOSfjN5yL512Tzqy8Z6EkeYmAdbkOg8lIuTEmwlOuHbdLkQuWEVJ9 wtQubNqM+AwuSYLPZtelqwdoTmF6JkFgGW0H5/9YQc4d5t68khh4Odpr7A4UocsayRwU FrMHQcQC9bsJqK0e63dsC9MfBkM92OyDYgxgoOF6cN1GBxsTyVSTouH9CwdTNPrzcAm/ u4Ezvh3/QEUB1r+h2ifJzAn72VpIEizniRcRdHlkW7Ju0njV7nzxsath8+qjxQuDDOAE FL4HmFvZh/EBGjYzlwMawK3Q52ZGyYz3A67yPvR0trHrZXAMDlDhuDtzvFniMXbUV0tm mwLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=beZsxPhP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a90si5216868pli.654.2017.07.26.02.35.52; Wed, 26 Jul 2017 02:35:52 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=beZsxPhP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751693AbdGZJfs (ORCPT + 26 others); Wed, 26 Jul 2017 05:35:48 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:38335 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751466AbdGZJfA (ORCPT ); Wed, 26 Jul 2017 05:35:00 -0400 Received: by mail-io0-f179.google.com with SMTP id g13so65470763ioj.5 for ; Wed, 26 Jul 2017 02:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GgMcymkbot3/mx7qd4BVe1HJUoDDuYZvs4u529KanNE=; b=beZsxPhPFJARDgjY7Fkm3mES9XlNVSLq02OH0nuy5Nu/joAXcFPaYq2y57K28vFbXF Rn5uPSksdZyvS8gZ/EsB6Vfy8YEsZK8r9PQB06RlXNUCgQK3cXEqCbowG6/hincRE6mZ a658JVDWc8VqmyIXw9o6nP74STAQMJrDSnwxw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GgMcymkbot3/mx7qd4BVe1HJUoDDuYZvs4u529KanNE=; b=QjgMIibIEmpY852MLQME7mwHxx7VHvrC4amWawBCiZ9EjQ85H+B4yfe6nFkHSfzXpw fc3acxpkGacalSuMU7ONQk4eedlqXP08zAF2f5J4hDLrgslctzGbC7Kvh0xtz1WawknB SS6B33Lmyttl2Oo8MY77wUaTv/MitH5EU/cxS8F9XJjzKKwMD5EYM5ADKNivYaAOaZv8 kWH9jJyn61+2/UEHvSPyWxyClejKjkyBR4L1W4XAkw8QM02ml9sxwa+ecLX0ryykM8A4 BHMqzDQ58G0Vk47XLitjzxEVpw02AuLiiQVzk+6OZHE+x7/JSb7KcGvPSrwZJu8qmaJ1 XXjQ== X-Gm-Message-State: AIVw112VWEyVcL7ebsTuy4VHxhk0PK4uUxZQVW2VMTlzR3g7xCUFBau+ j1trsh7c4FCEHRCs X-Received: by 10.107.136.154 with SMTP id s26mr365096ioi.139.1501061698764; Wed, 26 Jul 2017 02:34:58 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id c195sm7837169ioe.42.2017.07.26.02.34.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 02:34:58 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Leonard Crestez , Srinivas Kandagatla Subject: [PATCH 4/6] nvmem: core: Add nvmem_cell_read_u32 Date: Wed, 26 Jul 2017 11:34:46 +0200 Message-Id: <20170726093448.2564-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> References: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leonard Crestez This function does a quick and easy read of an u32 value without any kind of resource management code on the consumer side. Signed-off-by: Leonard Crestez Reviewed-by: Shawn Guo Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 37 +++++++++++++++++++++++++++++++++++++ include/linux/nvmem-consumer.h | 7 +++++++ 2 files changed, 44 insertions(+) -- 2.9.3 diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index b0c6033..72a60dc 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -1111,6 +1111,43 @@ int nvmem_cell_write(struct nvmem_cell *cell, void *buf, size_t len) EXPORT_SYMBOL_GPL(nvmem_cell_write); /** + * nvmem_cell_read_u32() - Read a cell value as an u32 + * + * @dev: Device that requests the nvmem cell. + * @cell_id: Name of nvmem cell to read. + * @val: pointer to output value. + * + * Return: 0 on success or negative errno. + */ +int nvmem_cell_read_u32(struct device *dev, const char *cell_id, u32 *val) +{ + struct nvmem_cell *cell; + void *buf; + size_t len; + + cell = nvmem_cell_get(dev, cell_id); + if (IS_ERR(cell)) + return PTR_ERR(cell); + + buf = nvmem_cell_read(cell, &len); + if (IS_ERR(buf)) { + nvmem_cell_put(cell); + return PTR_ERR(buf); + } + if (len != sizeof(*val)) { + kfree(buf); + nvmem_cell_put(cell); + return -EINVAL; + } + memcpy(val, buf, sizeof(*val)); + + kfree(buf); + nvmem_cell_put(cell); + return 0; +} +EXPORT_SYMBOL_GPL(nvmem_cell_read_u32); + +/** * nvmem_device_cell_read() - Read a given nvmem device and cell * * @nvmem: nvmem device to read from. diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h index c2256d7..efafccf 100644 --- a/include/linux/nvmem-consumer.h +++ b/include/linux/nvmem-consumer.h @@ -35,6 +35,7 @@ void nvmem_cell_put(struct nvmem_cell *cell); void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell); void *nvmem_cell_read(struct nvmem_cell *cell, size_t *len); int nvmem_cell_write(struct nvmem_cell *cell, void *buf, size_t len); +int nvmem_cell_read_u32(struct device *dev, const char *cell_id, u32 *val); /* direct nvmem device read/write interface */ struct nvmem_device *nvmem_device_get(struct device *dev, const char *name); @@ -85,6 +86,12 @@ static inline int nvmem_cell_write(struct nvmem_cell *cell, return -ENOSYS; } +static inline int nvmem_cell_read_u32(struct device *dev, + const char *cell_id, u32 *val) +{ + return -ENOSYS; +} + static inline struct nvmem_device *nvmem_device_get(struct device *dev, const char *name) { From patchwork Wed Jul 26 09:34:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 108746 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp582504qge; Wed, 26 Jul 2017 02:35:34 -0700 (PDT) X-Received: by 10.84.233.207 with SMTP id m15mr328017pln.334.1501061734004; Wed, 26 Jul 2017 02:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501061733; cv=none; d=google.com; s=arc-20160816; b=S1VsxegouzwlhdvkjULvKW4Zu1QspDzwkqXJ33oNgobeS7VQTvgaYBaQG8mxXZg4JA qzoSE9k4S4SJBqPc4Rvuw15lRXrhzASiSK5iKJPg8m7cm8S6hhFIVZjGKYexwoFDtrG6 xdlUzhILH/KjywnZyXlPxIFzHBm4ZlWs316U9+LhvwLVO7RX6JH2e+NyJ3YiFOBWIKB/ gaZeuAJ803hDm/2C/X9tr00rysB8wo3HEnlnn9VCahmkn6s3eWS75hQCsn6mL2Lxxv6q nwnzapb7HrUnKnV1HkXoijYhlIIKJN6iN461QGfJ4GeAY4/XgWWlEh09bxtHzFd8uHRC VdAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=1DDcwyQcBdZUAiHf+aDJwqMEs3H4zPDIg5nDBqew9co=; b=EHSRnFXsRHLBDDz1ZmjpKhPx9rGn0QnxUFl/JVr6C2ihpFlijLArHvAa2uGJp9CATB uoQTuKusO3WCB+7mdO6IMBSDA9mJRULppMJQxYc+G7Hs/FNEMZLlxh1ElDkrjHzfUUyz Nx/o6Z6kT7uw20QQO9sIQOrXdlx1I+pKdHx4s9rrSLcgLowxPrvWfZ7f6eDGlbe4/RNV CJyMzfdKdAa4BgPO8LYK9nAmEJUfHDeSwpxkWTmbajI8JpI2dzRiSs+ZRPkZNqi5xpX8 GjvyVwm/vqpAcjucs84h3hZXJxnaKG7IvjC1gRHQRFJT8FY0ORbB3N1c7d2ZCp/L8Lnh lbaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=dHkrxfpH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si9815060plk.485.2017.07.26.02.35.33; Wed, 26 Jul 2017 02:35:33 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=dHkrxfpH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751655AbdGZJfc (ORCPT + 26 others); Wed, 26 Jul 2017 05:35:32 -0400 Received: from mail-io0-f180.google.com ([209.85.223.180]:36813 "EHLO mail-io0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751467AbdGZJfB (ORCPT ); Wed, 26 Jul 2017 05:35:01 -0400 Received: by mail-io0-f180.google.com with SMTP id g35so32984827ioi.3 for ; Wed, 26 Jul 2017 02:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1DDcwyQcBdZUAiHf+aDJwqMEs3H4zPDIg5nDBqew9co=; b=dHkrxfpHGjDPqtVm1wLvzdstruJ+mU8T5/jMS6gHdmHZpvD849aW3fthPTzH1PpFAo OqkgRLoKR1K8W8zfGRn0gcm3hCTxqnHxIhJimPtArsCDlnLcWfYlUSmqa0mSHYxsn/PD cWyTd32DAECQxov2GTjgMAblfhYevIZLoTii8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1DDcwyQcBdZUAiHf+aDJwqMEs3H4zPDIg5nDBqew9co=; b=Nnqz4LlRQWLG9Rukfwie8ZRsTPcAxYCOvUSIez0z4o3Uz43nVdjozxSZ71BR5X8Qv4 Yqqg8LRXX0ZL2Vm3IuF5GrWfXb9Gle2EaxfXMOakqaMms4pAMtVWm7JRHdzOURoJnAfG gRmhvU2PxGs7qMphYUlHNfzaGhHzdvv6WIQoeILUPcq29F9ojffnO9Db4bRftpIZTcev 07ghDztPev7W4PlIBWJbVO4kJ33qCn1kkHpPFrfGC9YWJpI4+uRIZHBDCoJeL7jZEqZl laClxS6ZxTNeDwugHcugAcxoNscnr74UQ8u6YT8rvbvaY7eUhZVNpi11pNZJrhHoiRGr GTBw== X-Gm-Message-State: AIVw1132mwFZ4Ba5u7abTFkIemzUTBP54bYbYQXROSb1zGXl7PXYmbA3 US8R7/ruQicP2eJ6SzZVfQ== X-Received: by 10.107.18.40 with SMTP id a40mr294161ioj.282.1501061700253; Wed, 26 Jul 2017 02:35:00 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id c195sm7837169ioe.42.2017.07.26.02.34.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 02:34:59 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Dan Carpenter , Srinivas Kandagatla Subject: [PATCH 5/6] nvmem: core: remove unneeded NULL check Date: Wed, 26 Jul 2017 11:34:47 +0200 Message-Id: <20170726093448.2564-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> References: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter "p" is the list iterator so it can't be NULL. Static checkers complain about this unnecessary check because we dereference the list iterator to get the next item in the list so we'd be in trouble if it really was NULL. I have removed the check. Signed-off-by: Dan Carpenter Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.3 diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 72a60dc..de54c7f 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -290,7 +290,7 @@ static struct nvmem_cell *nvmem_find_cell(const char *cell_id) mutex_lock(&nvmem_cells_mutex); list_for_each_entry(p, &nvmem_cells, node) - if (p && !strcmp(p->name, cell_id)) { + if (!strcmp(p->name, cell_id)) { mutex_unlock(&nvmem_cells_mutex); return p; } From patchwork Wed Jul 26 09:34:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 108745 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp582170qge; Wed, 26 Jul 2017 02:35:08 -0700 (PDT) X-Received: by 10.99.3.83 with SMTP id 80mr260803pgd.409.1501061707932; Wed, 26 Jul 2017 02:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501061707; cv=none; d=google.com; s=arc-20160816; b=i5pFa4PThA4jiLUtRp+WGHvyfNa1QtJNXLqbPeG2kxG+lLPBNm4RfdgUwO0cQCOtyd 1vwiMsYCRAVnMpAhHgiVALfTJ7tLdy2rxHLO9svR4BUB9W7tZYcLHmelVxAr61OeViW1 ZCtJZpWQ9OLceszWWReySZa+EYw+6aCYAzSBBdKtaB94K9mobzmyIyGpooWt6WdySF+D tYFIOhN8bJZHQxWL2/a3EofqXpNtnspy+j6ezrgEJHITuJSrfn6bITDA0ZTNGTEE/ohW UQ3g2slhLdhUmpsXlcJfjZW36KrSgjf0JAMOrLxkPGTNfCGK7d/x4sgXzDs1vKAm4Emw XBTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=NnyOfeEYoELvXQp6BNbjsnJg8V+Infhzp1qNOyvckOM=; b=Ee5zdoEVtIFJDuraO4hpRvZjQiQMiHX3KufZ9LFKzj994/YlAIrnIH6qiF0oMPTFuz Inkv3IYDGb1elswwEOxEMLR/NDiDCeQoR60+GPx3E2S+/scP0N/NP8GG8QJVPWA6LrKS tKWTsxX6bUlf6c5DKc9ChgFL8TQxZq0ESfZyi4fr4WBDTLD5HVab9/4yHCZfaI0ZElUe WaDYf9U6+SjwmFKmjHTB0RY6GYY5RbrP42D8//Mx1OPwMfBB9LtJj6/Xbc6LP7L1qNBs ARujmuRmqecJwKhr13zn86JXykrdJO9L7vmzVJYOmM6pC1oWuyD4m0CJJaaQUOU0dCk+ 9dkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=WDTeC6hF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si9815060plk.485.2017.07.26.02.35.07; Wed, 26 Jul 2017 02:35:07 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=WDTeC6hF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751592AbdGZJfF (ORCPT + 26 others); Wed, 26 Jul 2017 05:35:05 -0400 Received: from mail-io0-f178.google.com ([209.85.223.178]:35557 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751552AbdGZJfC (ORCPT ); Wed, 26 Jul 2017 05:35:02 -0400 Received: by mail-io0-f178.google.com with SMTP id m88so56942856iod.2 for ; Wed, 26 Jul 2017 02:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NnyOfeEYoELvXQp6BNbjsnJg8V+Infhzp1qNOyvckOM=; b=WDTeC6hFnzwvmIWz5M/tBheGEp0X793IItg6ak65oCVNnVUtE2DdOG+i0NshoIaS8+ Yhac89D+SYOlNGrIO7DS9lWzaTrrU1GO30JQ+dCbySQneIckklMQf36IiiB1vnmcCmb3 NauOf7+KZn/24X3N2mvonmn2tteS/hgqdjGAA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NnyOfeEYoELvXQp6BNbjsnJg8V+Infhzp1qNOyvckOM=; b=ugLCg85DD2Y/egczdP3vxKNe+eknUlrBWK7uWyLoYbgCk0mMG4K5Hbn8VjH2XQjuin qb/J8xlCKECsXIt5Rr0mnQf0nEB/jnlgbmK7UZGHjbwmyVdmh+Bd8tDYixHZOo5Z9g0D gBAyeWvMVzhErGdO23PAkPk1EZNxkrKlePcnqANGpWlj5ZpsYAkyIyeVR74H2yLUMQic L0nxlH3Uebu8CuAuaqCJ1VAjjlDraVW+N1lRDV6ZjhwQYEkMnT7UkMRQpjvf/rol3CLa OxtOG3rthY+pWrVPRfn93BUmf4tSyA6G5ri8HF1P32ehNJuRNy/R2BlJhrj0IDSHgml2 Mkvg== X-Gm-Message-State: AIVw110W/IdVWnqLdp0fNvVN5/3FSeJmLIarPf64ooy7kcg1rUfZwXSB d7wr3U6vdB1GmrDzIE5JiQ== X-Received: by 10.107.175.167 with SMTP id p39mr270941ioo.83.1501061701758; Wed, 26 Jul 2017 02:35:01 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id c195sm7837169ioe.42.2017.07.26.02.35.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Jul 2017 02:35:01 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 6/6] nvmem: include linux/err.h from header Date: Wed, 26 Jul 2017 11:34:48 +0200 Message-Id: <20170726093448.2564-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> References: <20170726093448.2564-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Srinivas Kandagatla missing err.h header file can cause simillar errors like below in some configurations. "error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]" This adds the missing include to ensure we can always include the header. Signed-off-by: Srinivas Kandagatla --- include/linux/nvmem-consumer.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.9.3 diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h index efafccf..4e85447 100644 --- a/include/linux/nvmem-consumer.h +++ b/include/linux/nvmem-consumer.h @@ -12,6 +12,9 @@ #ifndef _LINUX_NVMEM_CONSUMER_H #define _LINUX_NVMEM_CONSUMER_H +#include +#include + struct device; struct device_node; /* consumer cookie */