Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3447741pxa; Wed, 26 Aug 2020 00:01:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytPo5Ru1p3mMWIhzYh18Bk10iZpy4iF8cyr+Wlwbt3cnuUmAsemrmcUOEiT1W59n7sbPZN X-Received: by 2002:a17:906:a45:: with SMTP id x5mr13835235ejf.146.1598425295238; Wed, 26 Aug 2020 00:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598425295; cv=none; d=google.com; s=arc-20160816; b=GwDNSsEPA8oUDPF+wd3M2fAq3xXunuYO0Z7c9FAUZUA1K5303f8RZxNZMyGdswpc0T Q4iQvfhbkgYoAhOOv9UrxHJPvDfqCIzuyneMLOK0uLF6rn53/m2JGTlIEmIZROrriIZT m8y+6JNgPQ3mX/7nM7t8ffsUV/mj+Uj60pM9yXeBwMD0QnlrkJFXdVW+oK6j4GCfiRsN 91G24QjkmyotBwvWZlPj+CzcsdqAQp6BfJAIbiazm4dPPNr5oVd/MvGN73B6OZ+9uuRA FhzK+/lB9Di/hw/JcuNoDHGlxg+6Qbs+/ECDwIES6CiSakSXYFb3CyRGDrZgaWVsQKPd mXfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ENOsjhbbxKoeM0u7sxFhovClTCYdz/d5wJeIuEs7Zt4=; b=FXaMmnViVOMzZfnPLPwhP07MN7kFRko5Zh1MrSfYUmZoIPD0tBCRtoPpvH8qUhEjfu X8OnLubQwNtB8jH+anMusDTwGiy49IQ1CUnRqOIOM2CDlAzocQb/8gZVN6ddD2jYKOCE 3l9NvFn646sEi/yJVf2i6dhX0lYUiSQNuoau6vmw9vtpvypy3WWtakVji34H7HTSkBeo sbQ2ZFCH0pbP7pjVdD/AKAWL9+c/urYz6jNVp/pG7v6pE+6BVGraxf24GiMDJvDrB1C5 F/gKDdsICXrENMYS6GdYzMVGQm96RIEM2+NYcJTghLRWoYAmxBvsSn6gEV/yh+FW05zs TzzQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fw19si987580ejb.553.2020.08.26.00.01.12; Wed, 26 Aug 2020 00:01:35 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726766AbgHZG7r (ORCPT + 99 others); Wed, 26 Aug 2020 02:59:47 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40316 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726233AbgHZG7r (ORCPT ); Wed, 26 Aug 2020 02:59:47 -0400 Received: by mail-wr1-f68.google.com with SMTP id b18so630413wrs.7 for ; Tue, 25 Aug 2020 23:59:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ENOsjhbbxKoeM0u7sxFhovClTCYdz/d5wJeIuEs7Zt4=; b=bu2E3Y6wzbFE3H5T2NCxUNmqg08IwpndjAl4SXZ85e227bXss+SDteFzcaOvopuWGp 5oAiQmpWR4VntK0AY1kM50+lHPm52VLc7dzlSJvKnD/wydsPFvYmUhQbd/ZQQ3wk/hvs 1llmWvgWqTPf+q0RljXRt5m239HNYegsh0W6ioRE0htyeCjYDrGqPLCOCwUJWFWWNFYG 2QqTkbKBdJPh/fpd79+WfoPpSufoPdajwHIZtrA7rRyHPAPqEl8LMu949ylj55ldaP3q xN12tEuYJTNVZAXhh7o1eEU4wjPFces/9uDGBomY8FvVlQupst08/pDIe48LgfpXg02e UjDw== X-Gm-Message-State: AOAM5315BLLQ2gQstssPDdJcdRDydWci0CmscAShBSMESfdrkE2Oii48 Eb72C+lo5Vma+RLSdNcNV6b9NZMPzGw= X-Received: by 2002:adf:f98a:: with SMTP id f10mr13693229wrr.420.1598425184851; Tue, 25 Aug 2020 23:59:44 -0700 (PDT) Received: from pi3 ([194.230.155.216]) by smtp.googlemail.com with ESMTPSA id m6sm3487152wrw.20.2020.08.25.23.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 23:59:44 -0700 (PDT) Date: Wed, 26 Aug 2020 08:59:42 +0200 From: Krzysztof Kozlowski To: "Ramuthevar,Vadivel MuruganX" Cc: linux-kernel@vger.kernel.org, myungjoo.ham@samsung.com, cw00.choi@samsung.com, andriy.shevchenko@intel.com, thomas.langer@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, yin1.li@intel.com Subject: Re: [PATCH v1 3/9] extcon: extcon-ptn5150: Switch to BIT() macro for cable attach Message-ID: <20200826065942.GC12271@pi3> References: <20200818065727.50520-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20200818065727.50520-4-vadivel.muruganx.ramuthevar@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200818065727.50520-4-vadivel.muruganx.ramuthevar@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 18, 2020 at 02:57:21PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Switch to BIT() macro for the cable attach. Squash it. > > Signed-off-by: Ramuthevar Vadivel Murugan > --- > drivers/extcon/extcon-ptn5150.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c > index c816a6c1e05c..fab862d9aad8 100644 > --- a/drivers/extcon/extcon-ptn5150.c > +++ b/drivers/extcon/extcon-ptn5150.c > @@ -44,9 +44,7 @@ enum ptn5150_reg { > > #define PTN5150_REG_CC_VBUS_DETECTION BIT(7) > > -#define PTN5150_REG_INT_CABLE_ATTACH_SHIFT 0 > -#define PTN5150_REG_INT_CABLE_ATTACH_MASK \ > - (0x1 << PTN5150_REG_INT_CABLE_ATTACH_SHIFT) > +#define PTN5150_REG_INT_CABLE_ATTACH_MASK BIT(0) > > #define PTN5150_REG_INT_CABLE_DETACH_SHIFT 1 > #define PTN5150_REG_INT_CABLE_DETACH_MASK \ > -- > 2.11.0 >