From patchwork Tue Oct 2 08:13:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1536151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id BF46CDF238 for ; Tue, 2 Oct 2012 08:16:02 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TIxbs-0004Qe-Uy; Tue, 02 Oct 2012 08:13:45 +0000 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TIxbn-0004PZ-Da for linux-arm-kernel@lists.infradead.org; Tue, 02 Oct 2012 08:13:40 +0000 Received: by mail-wi0-f169.google.com with SMTP id hq4so474437wib.0 for ; Tue, 02 Oct 2012 01:13:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=ZOYJQiYSIQQFK5LSHBhc44kNXar8hvNCRHAtiCAkuSg=; b=n/WFkFUWDVM5XS9FuGQtMIqsfXOFh7ucaBcxEN0eeV+j5b9BgnurwfwixfxxyNDTxk S8Q3y2hRY+di/JAbV02DdE0BFAPpJfbkbYKSFN3XYos7aly/OA+UGelx2YJo8Upvb2i0 PM7McXKMvObs5EeaVQ5XjvI9hbXG8woyOxj3XQc2bSJtVpCPP8tQR4Fd4o+SPDYwTf0F K1VfrYebmDETsd4zIJYl30SWg+VCB6G3YHCsIz6UzqE7Hwq1CyJan7daJmiAvj/h2n36 sliDeqb+vdNZiNbIH/7nEimArDND10fb1+N96tyAyIOXFQLnvSSFXOPJYlUp3WsLXMcG 26NA== Received: by 10.216.210.16 with SMTP id t16mr9122766weo.175.1349165617079; Tue, 02 Oct 2012 01:13:37 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id p4sm1193936wix.0.2012.10.02.01.13.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 01:13:36 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] Input: bu21013_ts - Request a regulator that actually exists Date: Tue, 2 Oct 2012 09:13:16 +0100 Message-Id: <1349165603-24401-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1349165603-24401-1-git-send-email-lee.jones@linaro.org> References: <1349165603-24401-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQn5K/6NQCdbkldITWKC14qr0GAxBJgM6tNrs3KBTBfgFs376aeeE7PhTqMC3nziX4Gg4MhZ X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.169 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Dmitry Torokhov , Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de, linux-input@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Currently the BU21013 Touch Screen driver requests a regulator by the name of 'V-TOUCH', which doesn't exist anywhere in the kernel. The correct name, as referenced in platform regulator code is 'avdd'. Here, when we request a regulator, we use the correct name instead. Cc: Dmitry Torokhov Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones Reviewed-by: Linus Walleij --- drivers/input/touchscreen/bu21013_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/bu21013_ts.c b/drivers/input/touchscreen/bu21013_ts.c index 5c487d2..2fae682 100644 --- a/drivers/input/touchscreen/bu21013_ts.c +++ b/drivers/input/touchscreen/bu21013_ts.c @@ -461,7 +461,7 @@ static int __devinit bu21013_probe(struct i2c_client *client, bu21013_data->chip = pdata; bu21013_data->client = client; - bu21013_data->regulator = regulator_get(&client->dev, "V-TOUCH"); + bu21013_data->regulator = regulator_get(&client->dev, "avdd"); if (IS_ERR(bu21013_data->regulator)) { dev_err(&client->dev, "regulator_get failed\n"); error = PTR_ERR(bu21013_data->regulator);