Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1670876ybm; Thu, 23 May 2019 05:06:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtJKm8W1s3RYMfdZnZe+cPFmOskkAA9MNLHkD6eh+hCjq0LYrwAC+tYlULgsJYHbpSIDzY X-Received: by 2002:a63:d241:: with SMTP id t1mr5824329pgi.183.1558613161023; Thu, 23 May 2019 05:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558613161; cv=none; d=google.com; s=arc-20160816; b=sSZlBf2yAdpGZZ/eo95vJp4vgBo10BUOjDUIcioPJ3WbI8xdFSOSFn5hXvyl0ZaE2d BWz5mgFwbDyNt7+aLqUMDlIoe9dqeoHZtkGTur0Lfk/6d5NYauBOHd50/m57tMLLXTA/ nkcjiy2zMsk4fNxj1Ne2A4y95dO/GIb59Ux/1lRwZ3Z7Rvty67CVfG/dbgvlfmzt2m0e db49AUU44/x6Dprp0sLu4OuvEhv+O2P/ivX3U7OcRG61inkFicLtCNsRXv/qLGHj3DWs w/4jGKYi0OuoRNVCTe32JAL8KtxayvivAbhXXZjF87tQz/PIHLJvPy/fvtODMk9MVVQS xa1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:dkim-signature; bh=BAJeWaq6W0U7JPDRdOvq40wHJy6iklS2Hpth2mIiBJU=; b=olWESugPwrl6m+Y5OC2zoSInseV0Qzm79vK5656RUtry7ChQ9iyQpdc50TZGdX1kZL b7JP72JlGfNfNOq2GucqyozOOXMwoqwKkyMn+yznvT6hqSUXaeirbvVZrot5+SZvS7SB JFITQd/UPIc6ShoO/aipTm5DwY7r+xOTRriS6+S9IgQP6ptCnieZSF9qr1TJy/QGXdcu MgryX8un5Uyks1rSKwhnSjIyFdO2uu60c5jP8JxbnM6aYg0HxbWQgskwjBkt/9J9NpdH 1e+ccMiNvJsua2OvyvMvwJ0b3VNyk4Oj0TpoEz+AlL1y9tUpV3ehiCONk8/WrAMUStV7 sypQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b=X3xQbIsa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24si20533483pll.388.2019.05.23.05.05.44; Thu, 23 May 2019 05:06:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b=X3xQbIsa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730779AbfEWMDH (ORCPT + 99 others); Thu, 23 May 2019 08:03:07 -0400 Received: from mail1.skidata.com ([91.230.2.99]:1649 "EHLO mail1.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729361AbfEWMDH (ORCPT ); Thu, 23 May 2019 08:03:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=skidata.com; i=@skidata.com; q=dns/txt; s=selector1; t=1558613008; x=1590149008; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BsXCeB/+8nXIFLIExpSSR1992V0/zCsuaE0B3Mxz00A=; b=X3xQbIsaSxINQ42kztWvA6cf3uhrCGiTsGXRauPJxn6LOx4fCsALWQBC xkGsFSu8qsnTLAH6UDyBNZnNw02x1VgcoyKNOs+GDup65UCpzy4OMf/Xh Vc8dK9Yy66qgWSoW9WBUqg44voAUqC8eUa81BjvvS5ubNwTzb80iJxQBP PIo/5LXmaVkOwQnkd5ovxBsR5R7ADWFmWGT8KMkwdGPlxUnT3SJYBIc9m hUE7Ds9/gH3dYe98HFMu7xN3G4Ge/YEEMiNns/1sV0/daZFp8ufYhUEc9 UVvmbsyYJfXQru+fGBMw4r3tOztmlJSg+WuqlUKQkNe0vLNFbf+EA4Lqj A==; IronPort-SDR: jVvamI5YPUJ4BjtZ/ivwpnxyAiIhKCF3881WsvJZLF24nG9EnfsT6GfkTlOM6+nZ5nbYb6ym12 nkofNIKS17YNeCrKgWisFiwhWlUTb5saw15vpgAmbRmTjH219w1shKRitrtW10kcz08AMNUnvL hst+rY3aCgK88lhbMKXaOlAWelRMy91HXXieZ9PQW7jjjL/oBxS4lJ3irnWLrjGOh1YGYQnkDM eGf+lCCY6f/p9D1xdrkno4E0DOxiyRtKNmE/uR60qr3jKLQ3jOk/cnOUwlhh2aNwRlgZcC7M2R 3fg= X-IronPort-AV: E=Sophos;i="5.60,502,1549926000"; d="scan'208";a="17248281" From: Richard Leitner To: , CC: , , Richard Leitner Subject: [PATCH v2 4/4] rtc: s35390a: change FLAG defines to use BIT macro Date: Thu, 23 May 2019 13:54:51 +0200 Message-ID: <20190523115451.20007-5-richard.leitner@skidata.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190523115451.20007-1-richard.leitner@skidata.com> References: <20190523115451.20007-1-richard.leitner@skidata.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [192.168.111.252] X-ClientProxiedBy: sdex4srv.skidata.net (192.168.111.82) To sdex5srv.skidata.net (192.168.111.83) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To be consistent change the S35390A_FLAG defines to use the BIT macro (like the S35390A_INT2_MODE defines). Signed-off-by: Richard Leitner --- drivers/rtc/rtc-s35390a.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-s35390a.c b/drivers/rtc/rtc-s35390a.c index 7293dcdea692..b18ce5610a94 100644 --- a/drivers/rtc/rtc-s35390a.c +++ b/drivers/rtc/rtc-s35390a.c @@ -36,14 +36,14 @@ #define S35390A_ALRM_BYTE_MINS 2 /* flags for STATUS1 */ -#define S35390A_FLAG_POC 0x01 -#define S35390A_FLAG_BLD 0x02 -#define S35390A_FLAG_INT2 0x04 -#define S35390A_FLAG_24H 0x40 -#define S35390A_FLAG_RESET 0x80 +#define S35390A_FLAG_POC BIT(0) +#define S35390A_FLAG_BLD BIT(1) +#define S35390A_FLAG_INT2 BIT(2) +#define S35390A_FLAG_24H BIT(6) +#define S35390A_FLAG_RESET BIT(7) /* flag for STATUS2 */ -#define S35390A_FLAG_TEST 0x01 +#define S35390A_FLAG_TEST BIT(0) /* INT2 pin output mode */ #define S35390A_INT2_MODE_MASK 0x0E -- 2.20.1