Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1066990pxb; Thu, 23 Sep 2021 17:27:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuaAnW1b0vnfFigiRQVZR0AjPLjEB2Trs4WTpvnn/gWsC36yCv//j2E/vNrfxcFhu/kbnl X-Received: by 2002:a17:906:eca7:: with SMTP id qh7mr8384267ejb.45.1632443248918; Thu, 23 Sep 2021 17:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632443248; cv=none; d=google.com; s=arc-20160816; b=PJrvLg5hrmKkUYf+DGQ8t4QF9cX8guoju7Sh4wYynj5aO+QoydHJusXj/R9OVsK+Kx o7iMLdpWO6O3qyCRpH8FffsdSY/ZzcWPeNwjDaZH0KVd0dqWoHuXnuUfznpUlsGfmNmh Vg/PMuZdTRYRz2MrCO0rMTAI6WxHPKQNw0/KyrEdfaObDm4qd06Jl+YHi9Vqj+eB/XWM N89pZD/YECJqbyEMtyk8axGYkdyANSTSJK3OBAKmsUSETkO0R9KOwQzZricr6WdjDRam As+cM3+ISRaTsNgMkCAyQ4oteOoQlHxQXAhynvLedwk21EIn/eY15/tu3pQ/yBN0WabV 1AFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9sFsmQpYcq6KTeilStx5cjaIzM5JQed8U/3AcvM6iMg=; b=QAIumExjIzqt8YJBk2NdaT3FXfMu7RiPAVyOM+UGZ8dUlbRXiN4b+iv2jOo+7Tr/pd hDvVuY8cB+otbBcXvH4aq/kFEIvcz1C77mD39UuQHOo8C2sy61BjqzBdceSLOrweN25q KmdMZhIUe5Vevm79au8/B0Nnw+mU1FY7y8//RP+d+/DjuS+mD66iTRsI5fZjaf5aX4uM wqowqsEIoOOxPaNbpcWl/42Jsu6Lde4gAIohyYobWLWPUem6hSyTzFJC2Zhc0/K654Fu eSmfh2/scRa+8dylpV6Z/hWHit+FnUp4Mm7qRp8jFiqiNSldc0I91Yh8JlocnHISoHiT eKrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=mfrLArPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si7275662ejl.758.2021.09.23.17.27.04; Thu, 23 Sep 2021 17:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=mfrLArPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234858AbhIXA1G (ORCPT + 99 others); Thu, 23 Sep 2021 20:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232143AbhIXA1F (ORCPT ); Thu, 23 Sep 2021 20:27:05 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6778C061574 for ; Thu, 23 Sep 2021 17:25:32 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id ee50so29482843edb.13 for ; Thu, 23 Sep 2021 17:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9sFsmQpYcq6KTeilStx5cjaIzM5JQed8U/3AcvM6iMg=; b=mfrLArPjt3IaiQk2emEhgwiwTEgfIkwRNjz19IaswetPS2GNRqPDVbsTRheVjY6f2c KVEwXBwdakM8qzT6cI/Zg4OQo6mAXQGCLKs0IiUxSqvtsuoYvSF0fgtT2F6Z4M50YUB6 Q4FLO5LpyAOacLE64+KZrd4qKdv9OL9fFWRNkIEX/qpEerSSLApxQ0clDlXxpJpO3ir/ GXkPDtkKDxKvJcmwzkQvCjBjRquQzg4Pt5k8PgydV+GWG1wKfRoO+fSNwxPjcJkh3Zl8 EsoB6oogW6QYck0hoRL6lbGkFoa62Jprqa769zYPsUjQQbDj1MOi4IgX5bcJzTG2XOf6 MqOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9sFsmQpYcq6KTeilStx5cjaIzM5JQed8U/3AcvM6iMg=; b=vr/vwaI+I5O5JYacOI6xn3R+7m6d+bVEwNDpTRItw9KtSnv3UypRdF+4OBukWCwvfb l4o2Mz4+Nz7cr8EfQ4lgkuYnBBPCDY+nbCZMWZ5ukq/otVnO93opsCpX2DWXVyJMREZE Y9KI9+0XB7Sxw4UcwtdljWKHF1qifyad+0uqbrc2FnEwyAR0WF9Vf+f7h0gfoSpslzS5 HEZhAbhv+8WLBs4zQN5hw0/SYxYLc7gkB7bqPwJx+hk9R5tbLUNJEciphMl5dc+Ig0/c ye/0piCSrTXpcWMhCrdFVns/yhm7Ts+IwHE10Dgm4k0f98iWhzj9RYZO4ZuuYBvK5ske n3sw== X-Gm-Message-State: AOAM53187fYCAsd1CdBI1cJRwhvwHmq8MiSRkQZDE/Am4l/6cUa9UXlw oOgTdm69okYbpK8NIaUcIjVqokzmYFWvsPCQ294/cf+YtmI= X-Received: by 2002:a17:906:dbd7:: with SMTP id yc23mr8377246ejb.187.1632443130598; Thu, 23 Sep 2021 17:25:30 -0700 (PDT) MIME-Version: 1.0 References: <20210923200321.3623222-1-pmalani@chromium.org> In-Reply-To: <20210923200321.3623222-1-pmalani@chromium.org> From: Guenter Roeck Date: Thu, 23 Sep 2021 17:25:19 -0700 Message-ID: Subject: Re: [PATCH] platform/chrome: cros-ec-typec: Cleanup use of check_features To: Prashant Malani Cc: linux-kernel , Benson Leung , Enric Balletbo i Serra , Guenter Roeck Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 1:03 PM Prashant Malani wrote: > > cros_ec_check_features() now returns a boolean. Remove the double NOT > operator since it's not required anymore. > > No functional changes are expected with this patch. > > Signed-off-by: Prashant Malani Reviewed-by: Guenter Roeck > --- > drivers/platform/chrome/cros_ec_typec.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/chrome/cros_ec_typec.c > index 262a891eded3..7b3afb6cda5d 100644 > --- a/drivers/platform/chrome/cros_ec_typec.c > +++ b/drivers/platform/chrome/cros_ec_typec.c > @@ -1116,9 +1116,8 @@ static int cros_typec_probe(struct platform_device *pdev) > } > > ec_dev = dev_get_drvdata(&typec->ec->ec->dev); > - typec->typec_cmd_supported = !!cros_ec_check_features(ec_dev, EC_FEATURE_TYPEC_CMD); > - typec->needs_mux_ack = !!cros_ec_check_features(ec_dev, > - EC_FEATURE_TYPEC_MUX_REQUIRE_AP_ACK); > + typec->typec_cmd_supported = cros_ec_check_features(ec_dev, EC_FEATURE_TYPEC_CMD); > + typec->needs_mux_ack = cros_ec_check_features(ec_dev, EC_FEATURE_TYPEC_MUX_REQUIRE_AP_ACK); > > ret = cros_typec_ec_command(typec, 0, EC_CMD_USB_PD_PORTS, NULL, 0, > &resp, sizeof(resp)); > -- > 2.33.0.685.g46640cef36-goog >