Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2883933pxa; Mon, 17 Aug 2020 23:59:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySY75+hD2kppaIg8g/Ra7BOvG53YpH8NYL+VQ73yuRpGtx3Qr2JwqiQT83jwdIDRPmVeGB X-Received: by 2002:a17:906:74d5:: with SMTP id z21mr19610835ejl.290.1597733940560; Mon, 17 Aug 2020 23:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597733940; cv=none; d=google.com; s=arc-20160816; b=rj6yp8ApYpNlytDlxX9iJeB/R6Az6CcO8vnyktDAVly85UXLlMsOj+3Be0lim+SuaO uxcRhyHgeiPaQZOcFCWlWpVl2rZ1rxbROaGqkMm+fBKN59wlujx7H1SxAoYgc+PAnuOb WFCL6vj8ANJiaIutUo1I18QB4nFuLx5GKtK3YqnSykcdeAMCzQYAFOJZaMDzlrn3ifQS ryPs71NZRKdhOnSYq0zDSi4RYOmNuROvj/QKirtCL/liD3oJGASy5kAWn2XtEGUuKXH9 YK7fT2GpNtMjCnh1MZLHyyg2LiioRVhI1RrHlDIrA12aYXa/KH9+ThWD3ykTxTFCtzs+ IHRA== 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=s5qoafjSFmY25sUPlqOd1UCKZLObffkoy6m64hdOcbw=; b=ENPJ6sGGxwxYv1ich4EWOsHwzgsU1Rt9QH/hOSNGlCo52ZuKWlT0PugFHtlxFJsJHc xoveVHbz7MFYSMAX0k9VrpEahmJ1PMvI3pmgCuNip25IrNH0HJaW4svxDDMWr0Pe57pA g+dYmwYvyIaIM7ZPqbg+eFUCpN74JDpS8oxyQiKqRuKs/Dca7gRRFyPgbcrYIhac0auj AfVsDdyggRyJzt2BlphvbUyNm6bkJX51il0P9IBmaI+NRZPjj0DMmJEpNliep2ai+xQh 362bASEUfNzfrtTbgBaEfHtbWNfodLIsPlrE7BSw5U9jedOQ1J5cPlSWFHvCnUIB6aoD iIGg== 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 c3si13050299ejm.314.2020.08.17.23.58.37; Mon, 17 Aug 2020 23:59:00 -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 S1726683AbgHRG5r (ORCPT + 99 others); Tue, 18 Aug 2020 02:57:47 -0400 Received: from mga05.intel.com ([192.55.52.43]:4412 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbgHRG5p (ORCPT ); Tue, 18 Aug 2020 02:57:45 -0400 IronPort-SDR: f73Y/Z8NG6PbtBGZqkpvZAXohplwqRfhwSCPq9U+p8e11Xbm1+Vtu0flsvtv/kydGWe/qk/d/D JprWkkFAihUQ== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="239677793" X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="239677793" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2020 23:57:45 -0700 IronPort-SDR: enmSBXYiwrUo5ugLSw12B5LZtZOla0iz9hfjVDpAavsLWaaafUFxSzHhkAXASqGgCpm73cqE+T RMqn6RkTsk4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="296741577" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga006.jf.intel.com with ESMTP; 17 Aug 2020 23:57:42 -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 4/9] extcon: extcon-ptn5150: Switch to BIT() for cable detach macro Date: Tue, 18 Aug 2020 14:57:22 +0800 Message-Id: <20200818065727.50520-5-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 detach. Signed-off-by: Ramuthevar Vadivel Murugan --- drivers/extcon/extcon-ptn5150.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c index fab862d9aad8..50fff148b772 100644 --- a/drivers/extcon/extcon-ptn5150.c +++ b/drivers/extcon/extcon-ptn5150.c @@ -45,10 +45,7 @@ enum ptn5150_reg { #define PTN5150_REG_CC_VBUS_DETECTION BIT(7) #define PTN5150_REG_INT_CABLE_ATTACH_MASK BIT(0) - -#define PTN5150_REG_INT_CABLE_DETACH_SHIFT 1 -#define PTN5150_REG_INT_CABLE_DETACH_MASK \ - (0x1 << PTN5150_REG_CC_CABLE_DETACH_SHIFT) +#define PTN5150_REG_INT_CABLE_DETACH_MASK BIT(1) struct ptn5150_info { struct device *dev; -- 2.11.0