From patchwork Mon Oct 17 17:15:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 3620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1558409wrs; Mon, 17 Oct 2022 10:18:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7I+i8VwtcjEMzt+CykO6JbBeo3LBl28MiSJ0PR1dn9YQ6KExXT9UPp+qOFcNtAkWBoiZZX X-Received: by 2002:a63:4b4c:0:b0:45a:5f8:b49d with SMTP id k12-20020a634b4c000000b0045a05f8b49dmr11553375pgl.490.1666027086367; Mon, 17 Oct 2022 10:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666027086; cv=none; d=google.com; s=arc-20160816; b=SdK21k89uK1k1XcfI9xdHdV6zXq7gTOKE52hcBxeydTtduPdPymiY4GDE20SSh3an9 6Kj67VbPSxXZWCi60/Cin5yPdvdFqpWEGUbkcj/JoOSSlsZY5IxZ+Z22XZR+d3oEgKGr Uzu/oJC7lGP+EG4rYxnaprNBHdyBBZP2fN7i92OGbUKZnwJci2SK5g2dtJrip8E79kzS C+JsKTIjfx6QKhqO/7jhU3pyE9IX2Rk2ybNPOFoT6WoLntMriuEmGrDUROWTLIg2mhku EOS6CODZZ4Yv8mabvpRUuFBxD3B0JrYnK+Cll7GhQmgHO5HuHE9VCRL2hN0cknDQjNJn Y+Vg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=GbpS5PVR05hH2mcZiX+uEKhj9uAYyKkv4hP5PG3VD5s=; b=AYHv+MTMRW3q4vyt09tEalyvVu+nN9RlRhjXV+wHJ+LvinQtnIm8alz1ouvws8ipKq xoA17v+ObjLFC7KgH37PVWiU/gwK+4Bec7VSg1hTngQd+S0Pom6012hb6W/9WgHHng78 0CJaXx399V6aj5wXq59I7WnTiUBfoMGXsI4tiGPfBwbr/ss6KoPktgfguxgHvmB9pC3I e7kKy9Z0XvIrs0M/zCNZE0YwpGXcld9BG6fGw7P6wSFKK259pgikPX2F7V0xspyf674l ftLqLYk9038ooUB22mBsZEPNbdoizCJfMV9V9HV/wqVNRwAislToS5jFuMFDAWTCYi8g j/Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lZMKGQrq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a17090a734200b00200b2891af7si16775064pjs.66.2022.10.17.10.17.51; Mon, 17 Oct 2022 10:18:06 -0700 (PDT) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=lZMKGQrq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbiJQRO6 (ORCPT + 99 others); Mon, 17 Oct 2022 13:14:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbiJQRO4 (ORCPT ); Mon, 17 Oct 2022 13:14:56 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E07CC69F68; Mon, 17 Oct 2022 10:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666026891; x=1697562891; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=YicqXZCTTMeS2vYU2zwLOt3q8gLXRSmM1gwuqL/8568=; b=lZMKGQrqH5dX3z3Hz2LniH8ULdBFoRnimox2Ixp91ORUjZGz9AhC9Y6F RhXprDomhTOfhABQNL5iEwErZONq4iFEAtRv2H02FBXqlN5lo0ixE5zyb ssMwS9frTZ7LfB3g04n0fs1eKXbVYHrwUlGNoHA7aoMqEWuH9KrPBIfQ/ wcJFO+R88bBM2PlYy/SAW5kcULo5VBAYGQBkOKY9VArnk0KeR5rDZnwe7 QW9aUTjHN4c7/0bCKzMTZoeTDB89b3TZwh8uVRWXTvc4Rh1ddF8tAy05S Ybr56lHWJlAwt3pqDPvoHFMr5jrlyBU/xL64YMsMm2sDGGRJjnWkB1Px1 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="293230317" X-IronPort-AV: E=Sophos;i="5.95,192,1661842800"; d="scan'208";a="293230317" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2022 10:14:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="691441419" X-IronPort-AV: E=Sophos;i="5.95,192,1661842800"; d="scan'208";a="691441419" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 17 Oct 2022 10:14:47 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 510C126D; Mon, 17 Oct 2022 20:15:08 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Andy Shevchenko , Linus Walleij Subject: [PATCH v1 1/1] pinctrl: intel: Use str_enable_disable() helper Date: Mon, 17 Oct 2022 20:15:06 +0300 Message-Id: <20221017171506.64183-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham 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?1746956018178793635?= X-GMAIL-MSGID: =?utf-8?q?1746956018178793635?= Use str_enable_disable() helper instead of open coding the same. Signed-off-by: Andy Shevchenko Reviewed-by: Linus Walleij --- drivers/pinctrl/intel/pinctrl-intel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c index 3695d7cb1d01..e9f4f95913ab 100644 --- a/drivers/pinctrl/intel/pinctrl-intel.c +++ b/drivers/pinctrl/intel/pinctrl-intel.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -1171,7 +1172,7 @@ static int intel_gpio_irq_wake(struct irq_data *d, unsigned int on) else disable_irq_wake(pctrl->irq); - dev_dbg(pctrl->dev, "%sable wake for pin %u\n", on ? "en" : "dis", pin); + dev_dbg(pctrl->dev, "%s wake for pin %u\n", str_enable_disable(on), pin); return 0; }