Re: [PATCH v3 07/10] intel_mid: Added custom device_handler support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/11/2013 08:43 PM, David Cohen wrote:
>  
>  	/* MSIC subdevices */
> -	{"msic_battery", SFI_DEV_TYPE_IPC, 1, &msic_battery_platform_data},
> -	{"msic_gpio", SFI_DEV_TYPE_IPC, 1, &msic_gpio_platform_data},
> -	{"msic_audio", SFI_DEV_TYPE_IPC, 1, &msic_audio_platform_data},
> -	{"msic_power_btn", SFI_DEV_TYPE_IPC, 1, &msic_power_btn_platform_data},
> -	{"msic_ocd", SFI_DEV_TYPE_IPC, 1, &msic_ocd_platform_data},
> -	{"msic_thermal", SFI_DEV_TYPE_IPC, 1, &msic_thermal_platform_data},
> -
> +	{"msic_battery", SFI_DEV_TYPE_IPC, 1, &msic_battery_platform_data,
> +					NULL},
> +	{"msic_gpio", SFI_DEV_TYPE_IPC, 1, &msic_gpio_platform_data, NULL},
> +	{"msic_audio", SFI_DEV_TYPE_IPC, 1, &msic_audio_platform_data, NULL},
> +	{"msic_power_btn", SFI_DEV_TYPE_IPC, 1, &msic_power_btn_platform_data,
> +					NULL},
> +	{"msic_ocd", SFI_DEV_TYPE_IPC, 1, &msic_ocd_platform_data, NULL},
> +	{"msic_thermal", SFI_DEV_TYPE_IPC, 1, &msic_thermal_platform_data,
> +					NULL},
>  	{},
>  };
>  

For highly regular arrays like this it is better to keep each line a
single line even if it gets a bit too long rather than randomly breaking
them.  The alternative is to put every field of every entry on a
separate line, but I don't think that is necessary called for here.

	-hpa


--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux