Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2365245imu; Thu, 10 Jan 2019 12:54:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ji8hx96wS/5oO1NeOCKhgRAGxpdb4ZECjxqKkjKptOhvqa0oaSaIBmBfIsnPlvrRIDXcv X-Received: by 2002:a62:36c1:: with SMTP id d184mr11826242pfa.242.1547153686312; Thu, 10 Jan 2019 12:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547153686; cv=none; d=google.com; s=arc-20160816; b=h/EBDGEYajk3DVaSCWvWPDKJFTRwgKK+f0Kq10KiExvcHAO/Mjj8jvq2aVR1235k+m eiDaihRtPYSWHvnmx/R4kw1pRH/2gNnoNhcCF6b/CGnTsCRRDJacW4VrQ66uNwN2CN7B 2aNVC0x8jYv/AA2yBhg/5mpk3S5rzgRhVIa6qCnWfxDGUpHw0qSEbim0OoPnxaClrpdN 88NVRTO5IVhpBAjGaV9ADIfIaAosHajj4WhJxuJqGEhMI1pGI6pB4lXkjG6K/Mu1PrVl jj3hcsvgNZSkLKObX4J2XFu1TrjkC90ptfuCPmytIZMNEVfgfG89r76MiJiCEn55cXlJ Wpvg== 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; bh=vdL7Wind6r9dNA5erhWRe0bI9AkUTUdxHQmLIvlHJBk=; b=kOC2jHNk1XiGuvlYNUh8LVJ36Jxq/qqw/VkDV2FMep/RzfiiBM7x8JUAcLp539hvgi KxusziB+mBiHzrRXnrkAXr5X0FZtlRhXMPxE00k6aP5WhNs6SlV7FnI3d3aJceMriPz+ 2dYWpEbjGRdqyv6VUwwT6MAeOKv590d9dG1VYviIzIAJB7yNMm0JySgbg6MF3QxvLhIx VFNjZvPtubJpOI1oGrUP70IIFE9zSO45trXIUkjmGTpaRPetVBnAOMtBpie2XtDTscPK Vb93xOtrk1oW2JPjpEvCJjjmXDVx457Ksc/n0WX1gPAH02BPs62Jr97TM0Ump3gGdF7z C/zQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t9si48962140plq.337.2019.01.10.12.54.31; Thu, 10 Jan 2019 12:54:46 -0800 (PST) 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; 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 S1730692AbfAJR7K (ORCPT + 99 others); Thu, 10 Jan 2019 12:59:10 -0500 Received: from shell.v3.sk ([90.176.6.54]:58535 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729882AbfAJR7K (ORCPT ); Thu, 10 Jan 2019 12:59:10 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id CB1581002F3; Thu, 10 Jan 2019 18:59:05 +0100 (CET) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 6Di5iCeP8c-U; Thu, 10 Jan 2019 18:59:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 677A61002F4; Thu, 10 Jan 2019 18:58:58 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id C0jK_DAWrPma; Thu, 10 Jan 2019 18:58:55 +0100 (CET) Received: from belphegor.brq.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 8F9001002F9; Thu, 10 Jan 2019 18:58:54 +0100 (CET) From: Lubomir Rintel To: Andy Shevchenko , Darren Hart Cc: Rob Herring , Russell King , Mark Rutland , platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lubomir Rintel Subject: [PATCH v5 05/10] Platform: OLPC: Use BIT() and GENMASK() for event masks Date: Thu, 10 Jan 2019 18:58:40 +0100 Message-Id: <20190110175845.1203986-6-lkundrak@v3.sk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190110175845.1203986-1-lkundrak@v3.sk> References: <20190110175845.1203986-1-lkundrak@v3.sk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just a cosmetic tidy-up. Signed-off-by: Lubomir Rintel --- Changes since v1: - This patch was added to the set. include/linux/olpc-ec.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/include/linux/olpc-ec.h b/include/linux/olpc-ec.h index 7fa3d27f7fee..f7b6a7eda232 100644 --- a/include/linux/olpc-ec.h +++ b/include/linux/olpc-ec.h @@ -2,6 +2,8 @@ #ifndef _LINUX_OLPC_EC_H #define _LINUX_OLPC_EC_H =20 +#include + /* XO-1 EC commands */ #define EC_FIRMWARE_REV 0x08 #define EC_WRITE_SCI_MASK 0x1b @@ -17,17 +19,16 @@ #define EC_EXT_SCI_QUERY 0x85 =20 /* SCI source values */ -#define EC_SCI_SRC_EMPTY 0x00 -#define EC_SCI_SRC_GAME 0x01 -#define EC_SCI_SRC_BATTERY 0x02 -#define EC_SCI_SRC_BATSOC 0x04 -#define EC_SCI_SRC_BATERR 0x08 -#define EC_SCI_SRC_EBOOK 0x10 /* XO-1 only */ -#define EC_SCI_SRC_WLAN 0x20 /* XO-1 only */ -#define EC_SCI_SRC_ACPWR 0x40 -#define EC_SCI_SRC_BATCRIT 0x80 -#define EC_SCI_SRC_GPWAKE 0x100 /* XO-1.5 only */ -#define EC_SCI_SRC_ALL 0x1FF +#define EC_SCI_SRC_GAME BIT(0) +#define EC_SCI_SRC_BATTERY BIT(1) +#define EC_SCI_SRC_BATSOC BIT(2) +#define EC_SCI_SRC_BATERR BIT(3) +#define EC_SCI_SRC_EBOOK BIT(4) /* XO-1 only */ +#define EC_SCI_SRC_WLAN BIT(5) /* XO-1 only */ +#define EC_SCI_SRC_ACPWR BIT(6) +#define EC_SCI_SRC_BATCRIT BIT(7) +#define EC_SCI_SRC_GPWAKE BIT(8) /* XO-1.5 only */ +#define EC_SCI_SRC_ALL GENMASK(8, 0) =20 struct platform_device; =20 --=20 2.20.1