From patchwork Wed Nov 14 13:47:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12840 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 F007923E13 for ; Wed, 14 Nov 2012 13:47:52 +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 5C283A18F14 for ; Wed, 14 Nov 2012 13:47:52 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so561461iej.11 for ; Wed, 14 Nov 2012 05:47:51 -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=VVQBP+EHm1n/+G7Wn4Lz9xFzLQ0bjbbVoBYCBzMvGNbvCdQWPYVpHkE2FO8mh+go+1 Ype9pb+shiV2j951JaKUknIwW0nQA5BDfyZjqJuz/QVjS81qVLAJuonHeMJsVVZaxsH/ ie+JeqHOv/3hhUb9JC7HWnGB/OZKhrLc8uw5cEw/U8fUDxYHy1OvS0bBLDBIaoTqilsR ctrFm1Li27H8fqbac+FgVoTiKjPGp82yIOkHhJLMcTQ8sr2a5hLoeGBnjACXPO8dExoF 9f16Ep2kQAKE38ximh0hLTCFoNplG0JGKoNPemXwYvxj15y0v0FpCLl6pmDhTicOG+1B LI9A== Received: by 10.50.213.34 with SMTP id np2mr1809484igc.57.1352900871795; Wed, 14 Nov 2012 05:47:51 -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 n20csp662890igt; Wed, 14 Nov 2012 05:47:51 -0800 (PST) Received: by 10.180.93.3 with SMTP id cq3mr1617756wib.1.1352900870363; Wed, 14 Nov 2012 05:47:50 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mx.google.com with ESMTPS id t30si6663332wei.83.2012.11.14.05.47.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Nov 2012 05:47:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.181 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.181; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.181 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-f181.google.com with SMTP id hm2so203225wib.10 for ; Wed, 14 Nov 2012 05:47:49 -0800 (PST) Received: by 10.180.72.232 with SMTP id g8mr10483890wiv.0.1352900869281; Wed, 14 Nov 2012 05:47:49 -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 b1sm2516537wix.11.2012.11.14.05.47.47 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Nov 2012 05:47:48 -0800 (PST) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: Lee Jones , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH 1/5] Input: bu21013_ts - Request a regulator that actually exists Date: Wed, 14 Nov 2012 13:47:13 +0000 Message-Id: <1352900837-20759-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352900837-20759-1-git-send-email-lee.jones@linaro.org> References: <1352900837-20759-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnRFMWczr+WDXKJz6T97L2La7o7rwivwFRlWWD9apy2dAn+NZLOxX3xSnDgkTn1TV9UmGpJ 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);