nct6775: Allocate and create attributes from templates

This patch significantly reduces the amount of boiler-plate code.
Module size is reduced by more than 20k.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>