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: 1811021 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E0D743FC54 for ; Tue, 27 Nov 2012 13:14:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754604Ab2K0NOO (ORCPT ); Tue, 27 Nov 2012 08:14:14 -0500 Received: from mail-wi0-f174.google.com ([209.85.212.174]:46033 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753447Ab2K0NNT (ORCPT ); Tue, 27 Nov 2012 08:13:19 -0500 Received: by mail-wi0-f174.google.com with SMTP id hm9so4481185wib.1 for ; Tue, 27 Nov 2012 05:13:18 -0800 (PST) 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=SObuWeumhk2WjqOLXNCGfsz9bElUB+Ki6lCINC716Ig=; b=OHe5+VdsuYiP90tSZPya74WsP1+3JJhYzkwF0JYHqatNWmFitFODz/ks06ongmypfS bGQrxnkxZ7kf+eMwM5B+ggDJ32Dg9Coc7SW67ehykNBjW89M++QGHlPlryFoxpgB9v7K +hXayEwexfGnd1YxoUUGm8qjbXA0pkxYVyaolF4uo7GMw6RKG6xJbZZxgHAj16glYV/y hoU2bBAhZdCSCmhd9Q/wCyIlKaiDn4OFOr5lw82znz6UXztIseateU5JMaIHWuljqOIf kiBa4beapUUmUddC3Ccu8cahBsu8HeJQ0DrYDJkww9HjOHxO8Hf6JPtQPBz3t3Lmka2F y89g== 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: ALoCoQnIH6mfzOjvPvJijE3aW/swUvkzn7cm+ADzOb0ADb0zmF38lRCOiW/BgArN4U/UT6/NBoyj Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.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 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);