From patchwork Thu Aug 27 21:50:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 52781 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 8C8FF22EA3 for ; Thu, 27 Aug 2015 21:50:47 +0000 (UTC) Received: by lbcue2 with SMTP id ue2sf10954273lbc.1 for ; Thu, 27 Aug 2015 14:50:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=ePmHo3rlC7urWvhNvAKTXNKl7G6rjW8Z+4wBuwKypqw=; b=CpfXpbNevnF6oJpFZ8iw/VrGXIDyQFxRSTElTV694/yUR9tGnLmLuAvEd3ZB1h09pv Dr54CcoPCzYhbisNrAR4/WI4qbN49nnDsaocttaZZmtMSOC9WdxerIUFJ6xTDuKbBXWr RP7UMey3zbl0ZQ7LuIqIyS7KhsrEyB66ZRVq5kdW1uiqlO3Andt9vai9+Ym/EsO38/49 dD6G3iFRy3rW2I6CP5E3XUfMR/or4lx7cDAXmPqg8LYyf4THqQQkwHCKJIirRCoNbqM5 hwx0C3kxmfrXtpxKHfnmp/1pYJ4tJSotigpWfwvqaWn07Hf+8N+CCDXnhVpydeD6zun+ 08wA== X-Gm-Message-State: ALoCoQm+T5X30rnB9ZBM1kgR/RqkmwAnWRJ7a1fGl6D0fEAFH8tCDlWtqJ8pZQTyTP6qKAGv6OWm X-Received: by 10.152.5.164 with SMTP id t4mr1834086lat.0.1440712245982; Thu, 27 Aug 2015 14:50:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.200 with SMTP id e8ls160204lae.4.gmail; Thu, 27 Aug 2015 14:50:45 -0700 (PDT) X-Received: by 10.112.122.78 with SMTP id lq14mr3248242lbb.5.1440712245818; Thu, 27 Aug 2015 14:50:45 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id o2si3720653lah.162.2015.08.27.14.50.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2015 14:50:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by labia3 with SMTP id ia3so21253984lab.3 for ; Thu, 27 Aug 2015 14:50:45 -0700 (PDT) X-Received: by 10.112.67.65 with SMTP id l1mr3332120lbt.86.1440712245626; Thu, 27 Aug 2015 14:50:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.151.194 with SMTP id us2csp107606lbb; Thu, 27 Aug 2015 14:50:44 -0700 (PDT) X-Received: by 10.68.203.195 with SMTP id ks3mr9764397pbc.123.1440712244692; Thu, 27 Aug 2015 14:50:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qz9si6030694pab.141.2015.08.27.14.50.43; Thu, 27 Aug 2015 14:50:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751943AbbH0VuK (ORCPT + 28 others); Thu, 27 Aug 2015 17:50:10 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:33631 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751449AbbH0VuJ (ORCPT ); Thu, 27 Aug 2015 17:50:09 -0400 Received: by labns7 with SMTP id ns7so21354026lab.0 for ; Thu, 27 Aug 2015 14:50:07 -0700 (PDT) X-Received: by 10.112.167.202 with SMTP id zq10mr3195665lbb.69.1440712207476; Thu, 27 Aug 2015 14:50:07 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-297471d5.01-192-6c756e10.cust.bredbandsbolaget.se. [213.113.116.41]) by smtp.gmail.com with ESMTPSA id t12sm889184lbs.19.2015.08.27.14.50.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2015 14:50:05 -0700 (PDT) From: Linus Walleij To: Samuel Ortiz , Lee Jones , linux-kernel@vger.kernel.org Cc: Linus Walleij Subject: [PATCH] mfd: stmpe: PWM on 24xx has altfunc 1 Date: Thu, 27 Aug 2015 23:50:02 +0200 Message-Id: <1440712202-19125-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On the STMPE2401 and STMPE2401 altfunction 1 corresponds to the PWM channels. This oneliner was missing in the case-switch, making it impossible to enable the PWM channel output. Signed-off-by: Linus Walleij --- drivers/mfd/stmpe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c index 2ea19dd6d4d1..75152a881e79 100644 --- a/drivers/mfd/stmpe.c +++ b/drivers/mfd/stmpe.c @@ -823,6 +823,7 @@ static int stmpe24xx_get_altfunc(struct stmpe *stmpe, enum stmpe_block block) return 2; case STMPE_BLOCK_KEYPAD: + case STMPE_BLOCK_PWM: return 1; case STMPE_BLOCK_GPIO: