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: 1741291 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 2A5E1DF264 for ; Wed, 14 Nov 2012 13:47:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422955Ab2KNNrw (ORCPT ); Wed, 14 Nov 2012 08:47:52 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:59289 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422927Ab2KNNrv (ORCPT ); Wed, 14 Nov 2012 08:47:51 -0500 Received: by mail-wi0-f178.google.com with SMTP id hm14so280597wib.1 for ; Wed, 14 Nov 2012 05:47:49 -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=RTTJQmvc9cq3aoOSDGkNDq4jUj25NQ8ZBhExmsDtvW0H1fGZ4GT4OX9it4gTAaj/QB 7YH6qEuPSORLAr8WsfodTltRFab4p8q4TCr3kMTQDlkfnhZjm/UiG8CfnnjS+SqfQ+X1 5MqitZjU9RoKlcv+aEeavBNFVBOfaUcgk+VoF7JFcpskg/TEelpVp8JLc7P2JUYTqPWZ szDmMyXsbxV8MSkNz99grFHgdRk6IAUyAWfNCJhK3sh4SjL06VJ3ubGzi/w9NbNOBqps Zp9Fx6sT8W3F6onEBp6sNlRrsKKJSyGtmZDGBmUBwzJAsdQrKaxjAA6qh7GgL9q7Mbv0 z08g== 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: ALoCoQmMpTmo4aaJq7ehbXj5wtAJ55ufnOp5ke6+H/obiff68w6KSl7rrj/nxlOrAAwlYFJ9Bm8s 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);