lkml.org 
[lkml]   [2023]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH v10 10/11] Documentation: Update writing_usb_driver for built-in modules
    From
    Built-in modules that set id_table need to set MODULE_DEVICE_TABLE so
    update the documentation accordingly.

    Signed-off-by: Allen Webb <allenwebb@google.com>
    ---
    Documentation/driver-api/usb/writing_usb_driver.rst | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/Documentation/driver-api/usb/writing_usb_driver.rst b/Documentation/driver-api/usb/writing_usb_driver.rst
    index 95c4f5d14052..5f38e3bd469a 100644
    --- a/Documentation/driver-api/usb/writing_usb_driver.rst
    +++ b/Documentation/driver-api/usb/writing_usb_driver.rst
    @@ -128,6 +128,9 @@ single device with a specific vendor and product ID::
    };
    MODULE_DEVICE_TABLE (usb, skel_table);

    +The ``MODULE_DEVICE_TABLE`` should also be set for built-in USB drivers
    +that provide an id_table, so that tools like USBGuard can properly
    +associate devices with your driver.

    There are other macros that can be used in describing a struct
    :c:type:`usb_device_id` for drivers that support a whole class of USB
    --
    2.39.2
    \
     
     \ /
      Last update: 2023-04-06 21:02    [W:8.382 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site