chiark / gitweb /
hwdb: merge atkbd into platform matches
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Mar 2015 11:19:09 +0000 (12:19 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Mar 2015 11:19:09 +0000 (12:19 +0100)
commitba76ee29bc02879fb42c048132af8889b00220d5
tree26d37f5603f79ff9d3f8a88c0caef74232e4412a
parenta9c30bca57e4ded8c416c9e319fd313ad346372b
hwdb: merge atkbd into platform matches

Currently, we always run
  hwdb 'keyboard:name:$attr{name}:$attr{[dmi/id]modalias}'
as last step to match keyboards. Therefore, if nothing else matched so
far, we still try the device-name+dmi combination.

However, we have a special atkbd rule which is only run for atkbd as:
  hwdb 'keyboard:$attr{[dmi/id]modalias}'

This is redundant, as we already pass the same information to hwdb in the
last fallback step.

This patch converts the hwdb "keyboard:dmi:*" matches to
"keyboard:name:*:dmi:*" matches and drops the redundant rule.
hwdb/60-keyboard.hwdb
rules/60-keyboard.rules