Search Linux Wireless

Re: [PATCH 1/5 V2] rtlwifi: Change PCI drivers to use the new PM framework

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

 



On 12 October 2011 03:28, Larry Finger <Larry.Finger@xxxxxxxxxxxx> wrote:

>
> +static const struct dev_pm_ops rtlwifi_pm_ops = {
> +       .suspend = rtl_pci_suspend,
> +       .resume = rtl_pci_resume,
> +       .freeze = rtl_pci_suspend,
> +       .thaw = rtl_pci_resume,
> +       .poweroff = rtl_pci_suspend,
> +       .restore = rtl_pci_resume,
> +};
> +

Hi Larry,

You can save a few lines of code here, and in the other files where it
is done - there is a convenience macro for simplifying creating a
pm_ops struct like this, see SIMPLE_DEV_PM_OPS() in pm.h.

Cheers,

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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux