From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753223AbbJZVdG (ORCPT ); Mon, 26 Oct 2015 17:33:06 -0400 Received: from 7of9.schinagl.nl ([88.159.158.68]:33309 "EHLO 7of9.schinagl.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752728AbbJZVc4 (ORCPT ); Mon, 26 Oct 2015 17:32:56 -0400 From: Olliver Schinagl To: Olliver Schinagl , Thierry Reding , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Joachim Eastwood , Maxime Ripard , Alexandre Belloni Cc: Olliver Schinagl , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 04/10] pwm: core: use bitops Date: Mon, 26 Oct 2015 22:32:35 +0100 Message-Id: <1445895161-2317-5-git-send-email-o.schinagl@ultimaker.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1445895161-2317-1-git-send-email-o.schinagl@ultimaker.com> References: <1445895161-2317-1-git-send-email-o.schinagl@ultimaker.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Olliver Schinagl The pwm header defines bits manually while there is a nice bitops.h with a BIT() macro. Use the BIT() macro to set bits in pwm.h Signed-off-by: Olliver Schinagl --- include/linux/pwm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/linux/pwm.h b/include/linux/pwm.h index d681f68..29315ad 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -1,6 +1,7 @@ #ifndef __LINUX_PWM_H #define __LINUX_PWM_H +#include #include #include @@ -74,9 +75,9 @@ enum pwm_polarity { }; enum { - PWMF_REQUESTED = 1 << 0, - PWMF_ENABLED = 1 << 1, - PWMF_EXPORTED = 1 << 2, + PWMF_REQUESTED = BIT(0), + PWMF_ENABLED = BIT(1), + PWMF_EXPORTED = BIT(2), }; /** -- 2.6.1