From patchwork Tue Nov 27 13:13:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13236 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 694124C1794 for ; Tue, 27 Nov 2012 13:13:21 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 17CE0A19CA5 for ; Tue, 27 Nov 2012 13:13:20 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so6338687ieb.11 for ; Tue, 27 Nov 2012 05:13:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=SObuWeumhk2WjqOLXNCGfsz9bElUB+Ki6lCINC716Ig=; b=bBtAnSrAfogNcN6ukKKIt4Y+qZnNH2n90d0EmFMA630JfJ8vJRFfxPMOlrYHQ40X1A ID2lcjXQNnEblUp6biMOVtE9DLMz2YFd+v5SAxaB+8veQkJSJ6SI9Er8fztVo/j1OknQ Srai8uGjuhZNezhtqBVMuNWeXqI3sf4prii+Z6w5JFqtIy/y7csvOuTv5Qa1Kkmkw0aq YpD3EAKw/NCkkk6jw1LHMQPa8WFQrNmAlUeAOJE/bdhsv4OvbgC0+vVA+2mJWrc0/pUg F1TaYtQNysehsanLfnFn+qZeWBlS7dU5d6NOd0LVIQPZoLlj8u5A733oxZQ2oMauSgY3 v3BA== Received: by 10.50.186.199 with SMTP id fm7mr15172662igc.62.1354022000437; Tue, 27 Nov 2012 05:13:20 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp455308igt; Tue, 27 Nov 2012 05:13:19 -0800 (PST) Received: by 10.216.204.17 with SMTP id g17mr5665307weo.147.1354021998574; Tue, 27 Nov 2012 05:13:18 -0800 (PST) Received: from mail-we0-f174.google.com (mail-we0-f174.google.com [74.125.82.174]) by mx.google.com with ESMTPS id t2si2067569wix.5.2012.11.27.05.13.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Nov 2012 05:13:18 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.174 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.174; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.174 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-we0-f174.google.com with SMTP id d7so3948974wer.19 for ; Tue, 27 Nov 2012 05:13:18 -0800 (PST) Received: by 10.216.52.74 with SMTP id d52mr6458474wec.73.1354021997961; Tue, 27 Nov 2012 05:13:17 -0800 (PST) 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 hv4sm2489443wib.0.2012.11.27.05.13.16 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Nov 2012 05:13:17 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH 1/3] Input: bu21013_ts - Request a regulator that actually exists Date: Tue, 27 Nov 2012 13:13:08 +0000 Message-Id: <1354021990-16978-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1354021990-16978-1-git-send-email-lee.jones@linaro.org> References: <1354021990-16978-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlJHBYnRagKIxYnaclOby0KZpAkYmo+9AsrnNZ8np47LCO2kSrOokw1YP0zfYiL7XcAMjbL 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 Acked-by: Arnd Bergmann Acked-by: Linus Walleij Signed-off-by: Lee Jones --- 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);