On 22-10-19, Sascha Hauer wrote: > On Fri, Oct 14, 2022 at 06:35:30PM +0200, Marco Felsch wrote: > > No functional change, just apply the common code standards. > > I didn't know these are common code standards for barebox ;) I thought that we are following the Linux way. At least there it is common to follow this. > Also I really don't like such things very much. The following forces you > to violate this rule: > > struct priv *priv = to_priv(common_type); > struct myfoo = &priv->some_special_thingy_inside_priv; Of course, in such cases we can't follow them. > > return 0; > > @@ -212,13 +212,13 @@ static int state_convert_node_variable(struct state *state, > > const char *parent_name, > > enum state_convert conv) > > { > > + struct device_node *new_node = NULL; > > const struct variable_type *vtype; > > + char *short_name, *name, *indexs; > > If you add another char * type variable or remove one of those you > either violate the ordering or introduce another useless churn. Got it, I will drop it if you don't like it. Regards, Marco