]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/mod_devicetable.h
Staging: ipack: implement ipack device table.
authorJens Taprogge <jens.taprogge@taprogge.org>
Tue, 4 Sep 2012 15:01:13 +0000 (17:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 21:43:26 +0000 (14:43 -0700)
commit849e0ad257d259b8443c63d74e3bcc32ebf336af
tree905b37114e2df32fc1c99634188d40a4921796f5
parent1f43d7bfac880f63320c4dcbb8f864112946337f
Staging: ipack: implement ipack device table.

The modaliases look like ipack:fXvNdM, where X is the format version (8
bit) and N and M are the vendor and device ID represented as 32 bit
hexadecimal numbers each. Using 32 bits allows us to define IPACK_ANY_ID
as (~0) without interfering with the valid ids.

The resulting modalias string for ipoctal.ko looks like this (once
ipoctal provides a device table):
alias:          ipack:f01v000000F0d00000048*
alias:          ipack:f01v000000F0d0000002A*
alias:          ipack:f01v000000F0d00000022*
(output from modinfo)

Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/ipack.h
drivers/staging/ipack/ipack_ids.h [new file with mode: 0644]
include/linux/mod_devicetable.h
scripts/mod/file2alias.c