Commit 5c8d2418 authored by Eric Biggers's avatar Eric Biggers
Browse files

ANDROID: trusty-core: use dev_groups for trusty_version attribute



Setting device_driver::dev_groups is the recommended way to register
device attributes.

Note: this changes the behavior slightly, as we now register the
trusty_version attribute even if requesting the version from Trusty
failed.  The file will show "unknown" in that case.  (Don't return an
error instead, since returning an error when reading a sysfs attribute
would be unusual.)

Change-Id: Idc2fe1bd50e428735e0e2ba7e5e9aee4b93474f0
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 19b581bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment