Message ID | 20180511110703.4924-6-srinivas.kandagatla@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp721970lji; Fri, 11 May 2018 04:12:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrP1gJCqpWHEyi5IHMKJW92hpexfK5zqm6FP5/6aVIU5j/5frc811NORJmZ+pMdvV+5CPW/ X-Received: by 2002:a63:4384:: with SMTP id q126-v6mr4028143pga.294.1526037126005; Fri, 11 May 2018 04:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526037125; cv=none; d=google.com; s=arc-20160816; b=rnZa3EGQLjZvSSPYXPxKu5N3CQCu3uYCjwULdM8eBHOzGe4+FD9g0JGiCApWYl+twA +S/jq+JdLcL9xJFGvCTnW5yyG51KIkBRm7wSKeWBUZT/Ta46h5d0JLGvtb/AIfaEo4K/ Ie+tfh5t3XoJK7in/imEDGvym8og0bCfPOwxmyyrS5J5VPGnUTM59kGUtZ/eqBHGASSH z1nMfqasIK9UNMCzlUvqY1SuErX2VfyAHh04ILoLdpbvW3izRkLLyZLSFjj7+A2+QXvh L9V0tlaKgHQ0QUx/7Nu6Cmfi/40ADQjsfO8BYSPrQbHMYjTxCLQE9GYrcIRzxJyT1TR4 PLIg== 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=oZHKLnNhfOD1TR9nUEnOw2v6BtOs+0YTR6k9PM6W1Ns=; b=WlRRvUx8MYNOyP1eg5MicfnZv3wW82GO2b0mV31uUAKJcdlL92ThwcBdWSsEdxa+by fMupWfEV7Xxv0sGSRFjEOs036GpZxs8BMwdGA4C2WQJhuKtPi+VNHaPWp1d3Sugszex9 1lLI0JQoYshAsYl6/P6QYhKEgcS+b4GImDe5G/YfPMtcOJ5mAQckOEF+5QfKlYM5IqDy 72Bq86izJjFNSG4E8w2BHcQZ8PId4IgxkI0aQjLJOFY3IbgqIPfSUSJl6wOq/78TfLqx CMSoO2XMAzuAd8ji8sL8E1D/l4Gtp+Kkf6khSdHAc5mjO0BCcN0fnY52kueLsFvDP/xM abgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b1NSEzoB; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2-v6si2476813pgo.289.2018.05.11.04.12.05; Fri, 11 May 2018 04:12:05 -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.s=google header.b=b1NSEzoB; 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 S1753641AbeEKLMD (ORCPT <rfc822;ramon.fried@linaro.org> + 29 others); Fri, 11 May 2018 07:12:03 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:40350 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753416AbeEKLJf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 May 2018 07:09:35 -0400 Received: by mail-wm0-f68.google.com with SMTP id j5-v6so2500850wme.5 for <linux-kernel@vger.kernel.org>; Fri, 11 May 2018 04:09:34 -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=oZHKLnNhfOD1TR9nUEnOw2v6BtOs+0YTR6k9PM6W1Ns=; b=b1NSEzoBeT0marUyGE6mxnLF2nlYTeJQQHiUoeYEm5TjuTaZ7lzNyigaIaVrBOQ4A9 nG0PPv9sJwzxdXO1/e0crwwfIk8gsuo/UZbRz51o1HVJA2Rfc8efo6Tqm2qnX1xFdOQ3 +63WusHK06Q9kmqTvLiYyCYefJE6R5ibgD0b8= 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=oZHKLnNhfOD1TR9nUEnOw2v6BtOs+0YTR6k9PM6W1Ns=; b=PUC1HNKUIrsvoA61aD1T1TVvQLJP+3g9yKtckhIDNl/ur6gyEpuw913V9hCkZf1wQx islPuWZ8BFkNRACPh7lRnK0ol2SwfdEf5yYsMNElkcyFq4Oz//031uKOyKnPcgWSeWAF ts9dnrK/TjPAK+uY2aJGIsG8q9QxJFBAYQy1rkZSKhIINEM5N0QVkqJap+5l+/kDYpIV R+0WEACiKc7UvjRVevxqWHdK/ikVNaD+khleXl3JqsFQkpg/ILS7hX8kXxmn7RlJrwk9 uYHbUIL01wrZHxg39Fmf886uvyYX8mkfjB8VyhTW/zdDq1XwvvCH6QjX5iIF3EpxDJPl gIDw== X-Gm-Message-State: ALKqPwdaIS4haZn1wZlwbvbtivYFQa2Sg7g29PiCWsy/htdiNPOaKCaq F1lkEvz2nwGrX+A02MrRgeJcLA== X-Received: by 2002:a1c:84cb:: with SMTP id g194-v6mr1804820wmd.8.1526036974244; Fri, 11 May 2018 04:09:34 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id a129-v6sm714047wme.34.2018.05.11.04.09.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 May 2018 04:09:33 -0700 (PDT) From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org, Jerome Brunet <jbrunet@baylibre.com> Subject: [PATCH 5/8] nvmem: meson-efuse: simplify read callback Date: Fri, 11 May 2018 12:07:00 +0100 Message-Id: <20180511110703.4924-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180511110703.4924-1-srinivas.kandagatla@linaro.org> References: <20180511110703.4924-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
nvmem: patches for v4.18
|
expand
|
diff --git a/drivers/nvmem/meson-efuse.c b/drivers/nvmem/meson-efuse.c index 2df9b0094f45..4623249dfd87 100644 --- a/drivers/nvmem/meson-efuse.c +++ b/drivers/nvmem/meson-efuse.c @@ -24,15 +24,8 @@ static int meson_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) { - u8 *buf = val; - int ret; - - ret = meson_sm_call_read(buf, bytes, SM_EFUSE_READ, offset, - bytes, 0, 0, 0); - if (ret < 0) - return ret; - - return 0; + return meson_sm_call_read((u8 *)val, bytes, SM_EFUSE_READ, offset, + bytes, 0, 0, 0); } static const struct of_device_id meson_efuse_match[] = {