lkml.org 
[lkml]   [2014]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/25] Replace DEFINE_PCI_DEVICE_TABLE macro use
    Date
    We should prefer `const struct pci_device_id` over
    `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines.
    This issue was reported by checkpatch.

    A simplified version of the semantic patch that makes this change is as
    follows (http://coccinelle.lip6.fr/):

    // <smpl>

    @@
    identifier i;
    declarer name DEFINE_PCI_DEVICE_TABLE;
    initializer z;
    @@

    - DEFINE_PCI_DEVICE_TABLE(i)
    + const struct pci_device_id i[]
    = z;

    // </smpl>

    I have 103 patches ready, and will only send a few for you to judge if
    it is useful enough, and to prevent from spamming too much.

    Thanks.


    \
     
     \ /
      Last update: 2014-07-18 18:22    [W:4.499 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site