From patchwork Sun Dec 11 06:59:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 9469681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2DCB660231 for ; Sun, 11 Dec 2016 07:00:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D374283B9 for ; Sun, 11 Dec 2016 07:00:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E93A28406; Sun, 11 Dec 2016 07:00:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F39B5283B9 for ; Sun, 11 Dec 2016 07:00:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751905AbcLKHAA (ORCPT ); Sun, 11 Dec 2016 02:00:00 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33310 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751798AbcLKG77 (ORCPT ); Sun, 11 Dec 2016 01:59:59 -0500 Received: by mail-pg0-f68.google.com with SMTP id 3so7198428pgd.0; Sat, 10 Dec 2016 22:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=a6DsWsjGYdys94kITNNxKvLpTO7NJjFwrH2cyDuEDWM=; b=VF7fs8gD6kcgeenZ+SHSewJ/vYqB5ZC9I11/rWaOIn3uPICeOd8IU+K6Kulx70tcrH bRQ2M7RYK+Ht0wn4ncYO4lX2FtNNuzFjyJN3C0R9tXRFhv2Fg1KFaxv4jfFXuspUPcwa 9AKi0QpriWe1d56NNgZ8M+2jamUBpAeMWRM691HiTmUylwC4LkapZQ5htHhG5zwp6xYx Ecnhy542p/FAGdNNRky//kNjVmdJ3EPxmQ9s8rB5lXTYLSr/DJxvNRF55efUWTR+2g7Z FCrAWAM2A15CnqI2wNsXY4j7ByOtkBCJCQXdSoMcmy/P1icTWEkm8As+PTjQ8A88Nuvh BTtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=a6DsWsjGYdys94kITNNxKvLpTO7NJjFwrH2cyDuEDWM=; b=FJaxik0CPoFljRk2mLzvrGQvfVJSK7IkRX+iFc5PaeGm72cbaPa44hM5+Y2JoG7pB3 ae6gn1L/EI5QpZ9iqOzmz7v2spfMt814kFCx4e/nSIp2puBIWka/SEz9Bqul+aVnLjHm MmQksH+n8UOFHx3tgH0HSOvSHeJxAtw+4+K6TCjFnynh0QdZ7HEcmMCktnTy0/SqFb7e //bFs0T4JRj0Hm/sMjcsGK/bEKV2/YwAErUGdV6brDea82ebMUaw6T6W6SZW8jcmd7zb Uh6oQPNjhBfVJ85FkOzHycvfWp/Gqb5NKeB3FhInMvCF9kP7ilydhxqUyOF+d1wuDykh k4RA== X-Gm-Message-State: AKaTC03J/758Y1WEPckKlx+CNATP7iGK5vk2YPo9cdVijVQIDPJDagaEcPo7oE3wZXRbMQ== X-Received: by 10.84.174.67 with SMTP id q61mr169201350plb.93.1481439598923; Sat, 10 Dec 2016 22:59:58 -0800 (PST) Received: from dtor-ws ([2620:0:1000:1311:15ac:abf1:7d17:cd34]) by smtp.gmail.com with ESMTPSA id u23sm67995626pfg.86.2016.12.10.22.59.58 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 10 Dec 2016 22:59:58 -0800 (PST) Date: Sat, 10 Dec 2016 22:59:56 -0800 From: Dmitry Torokhov To: Dan Murphy Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: drv260x - fix initializing overdrive voltage Message-ID: <20161211065956.GA17809@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We were accidentally initializing haptics->rated_voltage twice, and did not initialize overdrive voltage. Signed-off-by: Dmitry Torokhov Acked-by: Dan Murphy --- drivers/input/misc/drv260x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/drv260x.c b/drivers/input/misc/drv260x.c index 2adfd86c..9789d4f 100644 --- a/drivers/input/misc/drv260x.c +++ b/drivers/input/misc/drv260x.c @@ -521,7 +521,7 @@ static int drv260x_probe(struct i2c_client *client, if (!haptics) return -ENOMEM; - haptics->rated_voltage = DRV260X_DEF_OD_CLAMP_VOLT; + haptics->overdrive_voltage = DRV260X_DEF_OD_CLAMP_VOLT; haptics->rated_voltage = DRV260X_DEF_RATED_VOLT; if (pdata) {