scripts: Replace hard-coded subsystem list with __subsystem annotations.

This change removes the hardcoded subsystem list in gen_kobject_list.py
favor of marking the relevant driver API structs with the _subsystem
sentinel.

Signed-off-by: Corey Wharton <coreyw7@fb.com>
This commit is contained in:
Corey Wharton 2020-03-04 13:32:01 -08:00 committed by Andrew Boie
commit 86bfc489f4
25 changed files with 30 additions and 48 deletions

View file

@ -24,7 +24,7 @@
#include "cipher_structs.h"
/* The API a crypto driver should implement */
struct crypto_driver_api {
__subsystem struct crypto_driver_api {
int (*query_hw_caps)(struct device *dev);
/* Setup a crypto session */