Re: [PATCH] hid: core: add managed version of hid_hw_start

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

 



On Wed, 6 Jan 2016, Heiner Kallweit wrote:

> Most calls to hid_hw_stop are boilerplate code. The function comment
> states: "This is usually called from remove function or from probe
> when something failed and hid_hw_start was called already."
> 
> A managed version of hid_hw_start allows to avoid this boilerplate
> code in most cases (similar to the other devm_ functions). 
> hid_hw_stop is called automatically before the device is deleted.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx>

Generally I agree with the idea, but I'll be merging this only together 
with patches that are converting drivers to actually use this API.

Thanks,

-- 
Jiri Kosina
SUSE Labs

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



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux