Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2883916pxa; Mon, 17 Aug 2020 23:58:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPoPHF3YVWMjvN3mX2ZvorKITrjC0SMPf17MW85IUR6c8gQGPxF7+/bTRzV1K3GTKfmE3+ X-Received: by 2002:a05:6402:12c4:: with SMTP id k4mr18094410edx.358.1597733935654; Mon, 17 Aug 2020 23:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597733935; cv=none; d=google.com; s=arc-20160816; b=p/KDgkyeO7DZrvTFtKSn7fBFNJ7VSC0Bj6DE5FUeBq62IHCZdt3ISQF3PP1/U83/W/ N8/VMtt0+0HdoL+tIzkcx1Z4JAkvKZcP3R956Fqq19ioHpiegud7HtBlQmE9UQ2szRiq HqgFLeA0QN/xkz/Wt04WuhsUl+yDiXtMTjO6eqr0pUQfMjAJQo2es4KCx0A5IzA7BiP+ 3+ao9VNKZguPv7MivUejt3xrrckjYMMECQXtLNyeuROkHDwP91js/FNw12G03mH7Synj GEjL7uhVVt+CejusHP6Xdm7n82FB862gLNrTba7tX93eQQHZ9a3qiC18bbTzOdZo7b0T U46A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr; bh=ejVaV06aNUrjSNXq1moJgS3AqmBzWve6M1aETkJR+xc=; b=hDXEJMuHZHixmnjs9TRx1qkBkmyCIdY3MhRjwI3KmZxJ/oM9Vw+4nxL/M/u9AG4xjp KoSTRG+MTf1a1TTezIZRuA91BMhv+F08tO4ng/WRUaotRLDQRG32mPEjpDxVlShNzGzp Tiai+IssYOQ/X1Y+Im3Lf736GTTaiPcSSFiIjGeRFzf6SUXiQefCymnRMNVI+SYlNlcl X5PDZKt/HqqSG2MypCP/If7E8YUcwMw5IbYGDTX5wjlpltigkyBTuEdYQ3ePaI9Ft4Sj 1F49q5eqEUN5dGlK0hrTcSPBkTndpe2yI2ShFSdQysPsgPJ32xpEzxBCMNDVA2NmSxkM TZ3g== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si14938504edi.461.2020.08.17.23.58.32; Mon, 17 Aug 2020 23:58:55 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726656AbgHRG5o (ORCPT + 99 others); Tue, 18 Aug 2020 02:57:44 -0400 Received: from mga18.intel.com ([134.134.136.126]:54543 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbgHRG5m (ORCPT ); Tue, 18 Aug 2020 02:57:42 -0400 IronPort-SDR: cVL5Nf+J0tNr4prb0QSDdkaThRoCGUwIk3KBJ5NLzOM0Nl03UN/17iA9fHszrw8RPSyDBPhs7R J2IE06lJ7Yxw== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="142480939" X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="142480939" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2020 23:57:41 -0700 IronPort-SDR: OKsPklPW3i6XarwNKIN6IbyYmjAXrqyVgQCViEljuHt9nmbEz7I4QbGO3arhrhgXwjYRlrqu6V cgkAYvNbhH1g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="497277485" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by fmsmga005.fm.intel.com with ESMTP; 17 Aug 2020 23:57:38 -0700 From: "Ramuthevar,Vadivel MuruganX" To: linux-kernel@vger.kernel.org, myungjoo.ham@samsung.com, cw00.choi@samsung.com Cc: andriy.shevchenko@intel.com, thomas.langer@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, yin1.li@intel.com, Ramuthevar Vadivel Murugan Subject: [PATCH v1 3/9] extcon: extcon-ptn5150: Switch to BIT() macro for cable attach Date: Tue, 18 Aug 2020 14:57:21 +0800 Message-Id: <20200818065727.50520-4-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200818065727.50520-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200818065727.50520-1-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 From: Ramuthevar Vadivel Murugan Switch to BIT() macro for the cable attach. 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