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: 11903 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 0934C24146 for ; Tue, 2 Oct 2012 08:13:40 +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 A2A28A1843B for ; Tue, 2 Oct 2012 08:13:39 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so13594619iej.11 for ; Tue, 02 Oct 2012 01:13:39 -0700 (PDT) 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=ZOYJQiYSIQQFK5LSHBhc44kNXar8hvNCRHAtiCAkuSg=; b=iQrsqjCaMQr0/FpxPxbKa5M9IHDqVIvV35+a2IIVBMIi0E6QqV5Y1avqXjqA6khaHT nCd4l/foKEQ+Z4PV97MbgnZx9PfFsGIvVxt+QCQmOCTEuuYexb143FGOfWZHgf4cR5l2 tkJ/4YpQDo3bZil1GypGfffsEa5b+e2Cn8aRM6Y9i2e3zfP7TZBiopR6ULtJPP9/oQ9t RiEEW7H26de1ODd/x4GQB3T+wqXDFIwndTZcesbnVk9ZdGRvF2yzyl7VoQpGPcbes9Vn KJLi6wl2pa1sqb+L9I744nA8rUmiZcSvwrWx54+cbeMLrCpqk4r2iV/LTjAmL4loT03b kxlw== Received: by 10.50.154.227 with SMTP id vr3mr8015740igb.43.1349165619353; Tue, 02 Oct 2012 01:13:39 -0700 (PDT) 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.184.232 with SMTP id ex8csp69878igc; Tue, 2 Oct 2012 01:13:38 -0700 (PDT) Received: by 10.180.100.101 with SMTP id ex5mr20102491wib.16.1349165617681; Tue, 02 Oct 2012 01:13:37 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id g2si20468136wiy.44.2012.10.02.01.13.37 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 01:13:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.172 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-wi0-f172.google.com with SMTP id hq12so402457wib.13 for ; Tue, 02 Oct 2012 01:13:37 -0700 (PDT) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones , Dmitry Torokhov , linux-input@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: ALoCoQmjJ3s8cJ8CPVj1XKwKYDZ8+JowFMY4vAhP4jAwQoHUw1cunx7lBN4K6XASSQEvQ5AKoDpT 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 --- 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);