From patchwork Fri Aug 15 11:09:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 4726841 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D5EEE9F319 for ; Fri, 15 Aug 2014 11:13:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C3EB200FF for ; Fri, 15 Aug 2014 11:13:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 29C9C200BE for ; Fri, 15 Aug 2014 11:13:31 +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 1XIFOh-0006cH-C8; Fri, 15 Aug 2014 11:10:15 +0000 Received: from mail-wi0-f178.google.com ([209.85.212.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XIFOf-0005P8-5e for linux-arm-kernel@lists.infradead.org; Fri, 15 Aug 2014 11:10:13 +0000 Received: by mail-wi0-f178.google.com with SMTP id hi2so679978wib.5 for ; Fri, 15 Aug 2014 04:09:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o7BXaRsLOQ8ZKineZQmppmQMrwjBTSYy+T5QTPUh8Bs=; b=Lqd0sej5Zto4u2m0NPWpeTYUXsGyLrnMVsffUFzcedzglWShr40efPqPxG9eErXw6f TB6xVUGS/9oiAsfRWIMReTwDuaLfRfdP2/NAEsVceDp+KmSipQzMIj/hKBjOPigaGpDX C2viD9/n2cspft8gC2HcWHx9+cTYzOoXwuf3S6xGZA3RdVyZKoyROx2x69rlTFMv8fh0 udkyPAZ+73gNelXSD+vkBps3mFt7m3PJouAecPJcr3O7nE2Zkohj+yJxkj6XQI38nSH4 MX6VQdbhAr7UIBrH6Oi3KDyfgFan1hsRj+mTuaDCT/p4QMkQecRNFkfoJme/r30bImtp UUNw== X-Gm-Message-State: ALoCoQkmov3/kd7Q7IoNz1WsGI7J9I0nVzP0XKabtRu4+3c6KkB6fc9qtWZ/6Zjiz+js/8oWOC6G X-Received: by 10.181.13.44 with SMTP id ev12mr54966136wid.57.1408100990165; Fri, 15 Aug 2014 04:09:50 -0700 (PDT) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by mx.google.com with ESMTPSA id ft6sm1781867wic.0.2014.08.15.04.09.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Aug 2014 04:09:49 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, broonie@kernel.org, ldewangan@nvidia.com Subject: [PATCH] regulator: as3722: .name field initialized twice differently Date: Fri, 15 Aug 2014 12:09:44 +0100 Message-Id: <1408100984-11757-1-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140815_041013_357993_F174EB33 X-CRM114-Status: GOOD ( 11.24 ) X-Spam-Score: -1.4 (-) Cc: peter.griffin@linaro.org, lee.jones@linaro.org, patches@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 Regulator AS3722_REGULATOR_ID_LDO3 and AS3722_REGULATOR_ID_LDO4 have there .name field initialised twice with different values. Looking at the code the second entry should have been .sname which is what this patch corrects. Signed-off-by: Peter Griffin --- drivers/regulator/as3722-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3722-regulator.c index ad9e0c9..b68f05f 100644 --- a/drivers/regulator/as3722-regulator.c +++ b/drivers/regulator/as3722-regulator.c @@ -219,7 +219,7 @@ static const struct as3722_register_mapping as3722_reg_lookup[] = { { .regulator_id = AS3722_REGULATOR_ID_LDO3, .name = "as3722-ldo3", - .name = "vin-ldo3-4", + .sname = "vin-ldo3-4", .vsel_reg = AS3722_LDO3_VOLTAGE_REG, .vsel_mask = AS3722_LDO3_VSEL_MASK, .enable_reg = AS3722_LDOCONTROL0_REG, @@ -231,7 +231,7 @@ static const struct as3722_register_mapping as3722_reg_lookup[] = { { .regulator_id = AS3722_REGULATOR_ID_LDO4, .name = "as3722-ldo4", - .name = "vin-ldo3-4", + .sname = "vin-ldo3-4", .vsel_reg = AS3722_LDO4_VOLTAGE_REG, .vsel_mask = AS3722_LDO_VSEL_MASK, .enable_reg = AS3722_LDOCONTROL0_REG,