Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3448514pxa; Wed, 26 Aug 2020 00:02:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpMXsZHxVM2WTDboNDheVneujt2E8nqAbwKnryR7PvA6xe3qBW9ZrlDhg5DES9Wut0W6J5 X-Received: by 2002:a17:906:8283:: with SMTP id h3mr14856522ejx.326.1598425365297; Wed, 26 Aug 2020 00:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598425365; cv=none; d=google.com; s=arc-20160816; b=q5rQpZPbYVelWqRKdFiBLoEnSAPQ+AmB8dh/o7/KwYcouG2lRuUzZjWJwSGAwlSCuT fsWtKxnMSa5105nHHxF9/xVVCipJOh2eVbyfYMiE5HCwhoB8cUB4s+AKYmonQaIVjHh+ ldhEF1CHG28UU2cRqoxLwtDBc4UwUCg5+UPI+dTX/CuO5UXeya5kHvRx0C0l3sLJD769 DgAj6znQJ0SiN27XBzK+OITXvkBtkzGCUPBTezl9y/qZWpB+FlehqGk3eXWBqqRKsTjp hRz1aArYi8eiiCBh1z/jm5rjIo7PjV09+xD2x8+8Wd8CaoEceVIYRyJaXsu0RWUrN7is 61Og== 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=OVk17pjlFWM7xWR15mxNLFPj8fOx57j7Mfhg8pmLRG0=; b=oS3nnZ1BClzanijinxvvrh4DKDK2Uv5L9kzc3ibVRCO7yfKDwzSIHmaKtWKFiXkJfT xNkyGILdtG0c7pqJcHS9np2oTa86XJ97pQ0edr73/Hvthn8StWMeJt3j3tbtVbC0ePkz uowScoPmGyRztpxx/ZAJwwAdmDR7z6k/W0SVvOfNamJiIN3bWGkOLkXess+Z1GCk0HV/ FA9urrpIIBSC85GfEK5u2ZXOONGFkqWG6HciBgZtJQOcT+b0BoQd4wmoXypHLe/erCIj 2R9ZoS8O0uiJlTb86534yyES2BxDnuZg/VQtdFhU1yZ+R+2DQ+7C8jfV2N1czGIbRGMz +wFQ== 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 d13si953301edn.575.2020.08.26.00.02.22; Wed, 26 Aug 2020 00:02:45 -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 S1726999AbgHZHBh (ORCPT + 99 others); Wed, 26 Aug 2020 03:01:37 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40606 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726845AbgHZHAI (ORCPT ); Wed, 26 Aug 2020 03:00:08 -0400 Received: by mail-wm1-f66.google.com with SMTP id k20so637217wmi.5 for ; Wed, 26 Aug 2020 00:00:06 -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=OVk17pjlFWM7xWR15mxNLFPj8fOx57j7Mfhg8pmLRG0=; b=Nxlu9u6nhaVqkVipPRF4cCxkrNBnrY8U/4wv9LWzUBA3w0sw5On6PkgrgP5Mn82wj2 o0w/n/Y63kjRxUplhmZVLZPy2j7DjoSSZWCZOxxlJWuKIBa+fDoh33XDNr6/5njscOjS AIP5TnLCs3gK0LwzN44OkxeC8m3hrXPS24QM3ltOZ0ByGoeqajSbOX8qLK8CAvLVmHVR PfsLFdrZkKgWcvPbUjOe9WiM7pU84SN8+1RKv6Y+59o3jS00UGrnajf/tej/iwCeQvhB dn+YqGshah43ky9CAAmkX34+QjIFvgTdo5q502UJAvbHfgPBiYYiT6mfQRl0bAKbAkHq fgVQ== X-Gm-Message-State: AOAM531RK4ehPwQ9Dai/HNy0nb5C5rp+esKIVFMIgXytyXwQSXTafIrT OXaNe11R7yJjE3aRGJ9bbwI= X-Received: by 2002:a7b:c40b:: with SMTP id k11mr5362592wmi.19.1598425206295; Wed, 26 Aug 2020 00:00:06 -0700 (PDT) Received: from pi3 ([194.230.155.216]) by smtp.googlemail.com with ESMTPSA id b204sm3340413wmd.34.2020.08.26.00.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 00:00:05 -0700 (PDT) Date: Wed, 26 Aug 2020 09:00:03 +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 4/9] extcon: extcon-ptn5150: Switch to BIT() for cable detach macro Message-ID: <20200826070003.GD12271@pi3> References: <20200818065727.50520-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20200818065727.50520-5-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-5-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:22PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Switch to BIT() macro for the cable detach. Squash it. Best regards, Krzysztof > > 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 >