OSDN Git Service

drm/komeda: Add sysfs attribute: core_id and config_id
authorjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Tue, 22 Jan 2019 11:11:53 +0000 (11:11 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 7 May 2019 10:20:28 +0000 (11:20 +0100)
commit55223394d56bab42ebac71ba52e0fd8bfdc6fc07
treed6b16752e9f4bcee256eeab9be7281eb328d5a25
parent42c729418d9ce8f212ee691a8a91d93bfe9f34de
drm/komeda: Add sysfs attribute: core_id and config_id

Add two sysfs node: core_id, config_id, user can read them to fetch the
HW product information.

Also, use memset to initialize config_id, rather than quirky C syntax.
Courtesy of Nathan Chancellor <natechancellor@gmail.com>.

Signed-off-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
[Merged Nathan's patch that uses memset to initialize config_id into
original patch as the fixes tag changed due to rebase, reworded the
commit to reference the merged patch]
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/display/include/malidp_product.h
drivers/gpu/drm/arm/display/komeda/komeda_dev.c
drivers/gpu/drm/arm/display/komeda/komeda_dev.h
drivers/gpu/drm/arm/display/komeda/komeda_drv.c