Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp671324imu; Fri, 16 Nov 2018 08:26:15 -0800 (PST) X-Google-Smtp-Source: AJdET5f/arAdMon3usmN1WEUybSaQLA2+AnRsBJSn/uqE/8U2Q0ZDulmtUUMioycaE/oGfMAftJN X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr11519517plb.314.1542385575631; Fri, 16 Nov 2018 08:26:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542385575; cv=none; d=google.com; s=arc-20160816; b=rp0OQ1bo6q/OyCR9nEp0VB65ARxCnJ78NUiVV+kq1RYFHz9QSI2c3cl4sRXbV69t+G tQmYXS9POsFUaoIDTLBSzhtsnq5vcRWsNSwaVoed7S9xzPgFmdbYESj+S8esb9OrAdhX 5YrPSuVhL7hIpRuEQvWiW2G4JV/XfCB+0AawUYqh5IOUECV2RDqXfn7Pqa97h0DwZMK1 UAcK5xq61wEM+2ou+/JVLRLur/onfVi8CPyXmKwv9JOl8hWCgpWbOHcC7g8hWKJ7ABGy bjBBT0gBuQEAZe/fm44Ck2GYRH1Cz3+TZrIdZTnlGzSRsKH/jVQIPO/+zV8Rp6ufD6KA p18g== 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=8wP0gVV3Zl93pzAu8XGhRa39F4fhDnZ6pOzMe6JY0Q0=; b=Jc39W70H+gQ0D9kAGZwV9sGpk+jpBfKhYY9QhuFd+mSbcVphKrIVvnuLrHLN6Ia9O0 VIZ7j6dbY2hZbpUYyB9syheKK5Tw2wrJQWaxJ3qC6W6tb+2xp2Q6/TFpaEfNM+HcyfSQ /sGJSEkXiJdyi115XZAe59lpymaFw7jA+3W7/90O+h2ZZsKYND/e5a2a/Jwx27npi4NU nMg4AvocglPlkk9X4//fHuh2zqLf9cCXXIwsM3Ukl9cJL/8bXzS42sgKksvPEqHge2Fb 25t4UTWiC+wo53fCegKvtoc0phQXnzprlTGkfwvY9MAwZawBtnNEyyWrA1LbySAOZSNb VVbA== 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 30-v6si31690864plb.342.2018.11.16.08.26.00; Fri, 16 Nov 2018 08:26:15 -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 S2390273AbeKQCiH (ORCPT + 99 others); Fri, 16 Nov 2018 21:38:07 -0500 Received: from shell.v3.sk ([90.176.6.54]:57092 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390040AbeKQCiF (ORCPT ); Fri, 16 Nov 2018 21:38:05 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id B802A531BC; Fri, 16 Nov 2018 17:25:00 +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 zqiRkGA0TpfN; Fri, 16 Nov 2018 17:24:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id A877252BCA; Fri, 16 Nov 2018 17:24:23 +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 GzltHdsBBfvu; Fri, 16 Nov 2018 17:24:20 +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 639C252D03; Fri, 16 Nov 2018 17:24:17 +0100 (CET) From: Lubomir Rintel To: Mark Brown , Geert Uytterhoeven , Darren Hart , Andy Shevchenko Cc: Greg Kroah-Hartman , James Cameron , Sebastian Reichel , Rob Herring , Mark Rutland , Eric Miao , Haojian Zhuang , Daniel Mack , Robert Jarzmik , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, platform-driver-x86@vger.kernel.org, devel@driverdev.osuosl.org, linux-pm@vger.kernel.org, Lubomir Rintel Subject: [PATCH v2 09/17] Platform: OLPC: Use BIT() and GENMASK() for event masks Date: Fri, 16 Nov 2018 17:23:55 +0100 Message-Id: <20181116162403.49854-10-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181116162403.49854-1-lkundrak@v3.sk> References: <20181116162403.49854-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.19.1