[PATCH v2 1/3] media: staging: atomisp: fix for sparse "using plain integer as NULL pointer" warnings.
Alan Cox
gnomes at lxorguk.ukuu.org.uk
Wed Nov 29 13:58:50 UTC 2017
> There are 35 defaults defined by macros like this, most of them much
> more complicated that IA_CSS_DEFAULT_ISP_MEM_PARAMS, and a few members
> are initialized to non-zero values. My plan, therefore, is to convert
> everything to use designated initializers, and then start removing the
> zeroes afterwards.
Where they are only used once in the tree it might be even cleaner to
just do
static struct foo = FOO_DEFAULT_BAR;
foo.x = 12;
foo.bar = &foo;
etc in the code.
Alan
More information about the devel
mailing list