From patchwork Tue Feb 28 13:55:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 62505 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3031047wrd; Tue, 28 Feb 2023 06:04:28 -0800 (PST) X-Google-Smtp-Source: AK7set8zJlOc5GGLJUmDg3q49oTtyBy6Zu067hVFZF017aR7fhZXGrV3JntdNUMh9FaLp+FCkS/x X-Received: by 2002:a17:906:6ad0:b0:7c9:6e0e:1427 with SMTP id q16-20020a1709066ad000b007c96e0e1427mr2426145ejs.6.1677593068708; Tue, 28 Feb 2023 06:04:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677593068; cv=none; d=google.com; s=arc-20160816; b=JzoAgB648klTgtWTyJYGgWGncbFE9ZzVruFkPn4ISF4PcRUez7wxv5LkpD+VJn4yOt Y44iAX4XDs7Z632VKvcmSbltdx3/bBmkwU1ZJgDZxYvyg5duHWfWaXX6JLCioGFDO5j1 LlvBVMU7BKDvBUyFypMr5gZvGI4nzctoj7S6NbNwZcRiL33hnc6rVoyvkhAuD2hEd4ku xQ5SoIgU7dBZRIQCvaZU/G8aP1qL5fS0HJU5haC3IP+/yvtl2dGsl0hl8jSwOUBxlvRV Cn73saOK20mG0CzmIcQWOvvBoDTXzWTw+2664TrkR1oVGf0t0vWcdXqv/074AUkoBUWe OkNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MD1JkaNjiuMfQtfB3EJtmp0lEwTafG0tCM2GbcVNGY8=; b=T0VtcjmDDttRC6dK2usDe9vi4GhF4VyyzYph2ktnAuhnaWGjyzM0OycyzRPTsMG030 gjBRFPPBSPzuR7Wzr+ApFCbKzoAlMpt/gdnP15IjCbVQ14NxK353mupoBmEmUBNFfTm9 +tRlJBEDBRVcU5TZGfDm/4hlywahfL2kfxty6sVQ5RkAOMh49XLs1uvA7HURtsZdAgXh eHEk9Dx72XK2ey2Exy70IeNLBciopdGnssFM70uPGW5EwCpZqyabamRzatOAWRrYFGG8 wUd7r6vhtsUvcbf/fU5AyRq2KqK5HwZ3NOxuV4iU2KGzG94W9Xqffce+qfTShBYOGPMj 4pbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd25-20020a170906ce3900b008b3b05ca5e1si11036888ejb.375.2023.02.28.06.04.03; Tue, 28 Feb 2023 06:04:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229754AbjB1Nz0 (ORCPT + 99 others); Tue, 28 Feb 2023 08:55:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbjB1NzZ (ORCPT ); Tue, 28 Feb 2023 08:55:25 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 930A91EBEF for ; Tue, 28 Feb 2023 05:55:24 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pX0Rs-0007wu-FG; Tue, 28 Feb 2023 14:55:20 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pX0Rr-000sd9-QY; Tue, 28 Feb 2023 14:55:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pX0Rr-0011dj-61; Tue, 28 Feb 2023 14:55:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Thierry Reding , Munehisa Kamata Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH 3/4] pwm: iqs620a: Explicitly set .polarity in .get_state() Date: Tue, 28 Feb 2023 14:55:07 +0100 Message-Id: <20230228135508.1798428-4-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230228135508.1798428-1-u.kleine-koenig@pengutronix.de> References: <20230228135508.1798428-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=695; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=oFx9sWQeOcwK9tph3SLBT8A0PAe+uJ+yMPKcDB2SV6g=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBj/gezGzP7hFeDYYO3McBYrDAocsVr1s8ooAAwU 72jqr0StXGJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY/4HswAKCRDB/BR4rcrs CTM8B/96zKiaRWSNjbH003KQRBpIIUk86CaI410ZsKGBCyV0v6djqh/onhyaXAYC+W4nqNVMXLz mxQ24yUJjuQ12Lp9ZjG0NwkuCXQtgQ9Ob1HeqgWwaojpVWV0y0hQPo3s0Pip3SdJAe26QmPsTX7 Thfbp3kCQ3QH7keDvzkuU9eceLmtH5RdHFjKHsHLjloTbMNfH2/Fj3AxsMF3ZnUkL5elLKX+5NB YV/mnpLa85ujstFIAT08S6efYP2TwSz/2OBwvLl48h3tRkO1RmwX3Ckk3ElqzJ9/YbqziRfYjsI lWAaKOx6GRUApZFTmhVMAgeb+M6sMDEvq5k0YU4YIfK4l1U5 X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759083829772339521?= X-GMAIL-MSGID: =?utf-8?q?1759083829772339521?= The driver only supports normal polarity. Complete the implementation of .get_state() by setting .polarity accordingly. Signed-off-by: Uwe Kleine-König Reviewed-by: Jeff LaBundy --- drivers/pwm/pwm-iqs620a.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/pwm-iqs620a.c b/drivers/pwm/pwm-iqs620a.c index 8362b4870c66..47b3141135f3 100644 --- a/drivers/pwm/pwm-iqs620a.c +++ b/drivers/pwm/pwm-iqs620a.c @@ -126,6 +126,7 @@ static int iqs620_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, mutex_unlock(&iqs620_pwm->lock); state->period = IQS620_PWM_PERIOD_NS; + state->polarity = PWM_POLARITY_NORMAL; return 0; }