From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216AbbCNIcr (ORCPT ); Sat, 14 Mar 2015 04:32:47 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34183 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788AbbCNIcn (ORCPT ); Sat, 14 Mar 2015 04:32:43 -0400 Date: Sat, 14 Mar 2015 14:02:31 +0530 From: Sudip Mukherjee To: Isaac Lleida Cc: willy@meta-x.org, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH v2] staging: panel: change struct bits to a bit array Message-ID: <20150314083231.GA4120@sudip-PC> References: <1426288836-25749-1-git-send-email-illeida@openaliasbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1426288836-25749-1-git-send-email-illeida@openaliasbox.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 14, 2015 at 12:20:36AM +0100, Isaac Lleida wrote: > This path implements a bit array representing the LCD signal states instead of the old "struct bits", which used char to represent a single bit. This will reduce the memory usage. commit log should wrap at 72 char > > Signed-off-by: Isaac Lleida ' > --- > v2: fix some stupid errors from the first patch > > +#define BIT_ON(b, m) (b |= m) > +#define BIT_OFF(b, m) (b &= ~m) > +#define BIT_CHK(b, m) (b & m) > +#define BIT_MOD(b, m, v) \ > + (((v) ? BIT_ON(b, m) : BIT_OFF(b, m))?1:0) \ missing ' ' around ? and : please test your patch by checkpatch.pl before sending regards sudip