From patchwork Wed Nov 11 07:34:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7594321 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 89B12BF90C for ; Wed, 11 Nov 2015 07:37:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C1985205FF for ; Wed, 11 Nov 2015 07:37:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED612205DD for ; Wed, 11 Nov 2015 07:37:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZwPwN-00051z-Pl; Wed, 11 Nov 2015 07:35:35 +0000 Received: from mail-pa0-f67.google.com ([209.85.220.67]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZwPwJ-0004wN-97; Wed, 11 Nov 2015 07:35:32 +0000 Received: by pacfl14 with SMTP id fl14so3170358pac.1; Tue, 10 Nov 2015 23:35:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ayEUgQzAGfEY1+YQBMqkRDcuquHfwk1MKXXgKY0T4BY=; b=Sntgjo7d7znjJLp3y41piz5egY5fcT82I635362jUPGmjhnYUGm1a7cNfW1bXzem9l fSAqvBn9YvoQnke59MwFo/lTpKB4MYtplMRZzMeZBoQJ518w2qcnk33DM9xNQmGGNkcz qBV3hOWX+hP7zwT2wjzAJDzKjUOmq1p/NsLrDwPtsBl7FkzMD93vGWepEP8DwssCGCXh +Efss/B9L2BaurOKaxMqiyu6d4MGglXOK3z901amdZFI6pAR8JUWbOdwDllKknDBNDwD ZJn8L5gxyjaOt1rBqOUpw95e5R6BZFqdF2iPFjRFCPTARC3Y1EDapsT1Ru3a1agZr+6I b1hQ== X-Received: by 10.68.163.97 with SMTP id yh1mr12234223pbb.36.1447227310298; Tue, 10 Nov 2015 23:35:10 -0800 (PST) Received: from localhost.localdomain ([192.253.253.154]) by smtp.gmail.com with ESMTPSA id rm10sm7880660pbc.96.2015.11.10.23.35.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Nov 2015 23:35:09 -0800 (PST) From: Caesar Wang To: Heiko Stuebner , Srinivas Kandagatla Subject: [PATCH 1/4] nvmem: sunxi: trivial: fix code style Date: Wed, 11 Nov 2015 15:34:28 +0800 Message-Id: <1447227272-1728-2-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447227272-1728-1-git-send-email-wxt@rock-chips.com> References: <1447227272-1728-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151110_233531_463443_57A27849 X-CRM114-Status: GOOD ( 12.27 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jiri Kosina , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Chen-Yu Tsai , Maxime Ripard , linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP this pacthset try to fix the code style for sunxi. Signed-off-by: Caesar Wang --- drivers/nvmem/sunxi_sid.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index cfa3b85..bc88b40 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -13,10 +13,8 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * */ - #include #include #include @@ -27,7 +25,6 @@ #include #include - static struct nvmem_config econfig = { .name = "sunxi-sid", .read_only = true, @@ -55,8 +52,8 @@ static u8 sunxi_sid_read_byte(const struct sunxi_sid *sid, } static int sunxi_sid_read(void *context, - const void *reg, size_t reg_size, - void *val, size_t val_size) + const void *reg, size_t reg_size, + void *val, size_t val_size) { struct sunxi_sid *sid = context; unsigned int offset = *(u32 *)reg; @@ -130,7 +127,7 @@ static int sunxi_sid_probe(struct platform_device *pdev) if (IS_ERR(nvmem)) return PTR_ERR(nvmem); - randomness = kzalloc(sizeof(u8) * size, GFP_KERNEL); + randomness = kzalloc(sizeof(u8) * (size), GFP_KERNEL); if (!randomness) { ret = -EINVAL; goto err_unreg_nvmem;