hwmon: Correct struct allocation style
Guenter Roeck
maintainerHi,
Quoted 8 lines · Fabian Schindlatz
Use
sizeof(*var)instead ofsizeof(struct var_type)as argument tokalloc()and friends to comply with the kernel coding style.Co-developed-by Thomas Röthenbacher <[email protected]>Signed-off-by Thomas Röthenbacher <[email protected]>Signed-off-by Fabian Schindlatz <[email protected]>[groeck: Resolved comment conflict against -next]Signed-off-by Guenter Roeck <[email protected]>
This patch causes conflicts in -next due to commit 835896a59b95 ("hwmon/coretemp: Cosmetic: Rename internal variables to zones from packages"), which is not being submitted through the hwmon subsystem. Unfortunately, the conflicts are more substantial than I thought and not trivial. Since I have no control over the conflicting patch, I decided to drop this patch from the hwmon subsystem commit queue.
Please feel free to resubmit after the commit window closes. I would suggest to drop the coretemp driver from the patch since I don't know if further changes outside my control will be made to that driver.
Sorry for the trouble.
Guenter