[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aYO1sY0DAkI00uDx@smile.fi.intel.com>
Date: Wed, 4 Feb 2026 23:10:09 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Cristian Ciocaltea <cristian.ciocaltea@...labora.com>
Cc: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Sandy Huang <hjc@...k-chips.com>,
Heiko Stübner <heiko@...ech.de>,
Andy Yan <andy.yan@...k-chips.com>,
Louis Chauvet <louis.chauvet@...tlin.com>,
Haneen Mohammed <hamohammed.sa@...il.com>,
Melissa Wen <melissa.srw@...il.com>,
Jani Nikula <jani.nikula@...ux.intel.com>,
Robert Mader <robert.mader@...labora.com>, kernel@...labora.com,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org,
Matt Roper <matthew.d.roper@...el.com>,
Nícolas F. R. A. Prado <nfraprado@...labora.com>,
Diederik de Haas <diederik@...ow-tech.com>
Subject: Re: [PATCH v6 2/4] drm: Add CRTC background color property
On Wed, Feb 04, 2026 at 10:32:23PM +0200, Cristian Ciocaltea wrote:
> On 1/29/26 11:37 AM, Andy Shevchenko wrote:
> > On Thu, Jan 29, 2026 at 02:58:52AM +0200, Cristian Ciocaltea wrote:
...
> >> +#define __DRM_ARGB64_PREP_BPC(c, shift, bpc)({ \
> >
> > Not sure if this is an accepted style in DRM, by I find it difficult
> > to follow. I would expect the "({" be on a separate line.
>
> I initially got confused by the plethora of different styles, e.g. in
> "include/linux/math.h" we can find:
>
> #define rounddown(x, y) ( \
> [...]
>
> #define DIV_ROUND_CLOSEST_ULL(x, divisor)( \
> [...]
>
> #define mult_frac(x, n, d) \
> ({ \
> [...]
>
> #define abs_diff(a, b) ({ \
> [...]
math.h is a collection of APIs from the past from different years and code,
that's why the style is inconsistent (a lot!). So better not to take that
as an example.
> I agree your option is the most readable one, hence I used it consistently in
> v7.
Thanks!
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists