util: resource: Add preprocessing before updating attributes 83/270883/2
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 10 Feb 2022 12:00:11 +0000 (21:00 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 11 Feb 2022 00:57:30 +0000 (00:57 +0000)
commita98c15a73ad1df30d4c89f8198cb384c588728a3
tree60ede80835aa2a3dad32d6eacc0806ef7b4d3147
parentbb6dab4b977e3e22fd32b82205118b2209e2af4b
util: resource: Add preprocessing before updating attributes

There are resource information to be shared between attributes, so as
to support these resources this introduces prepare_update(), the new
driver operation called before update_resource_attrs() automatically.
In order to prevent updating each resource individually, removes
get_resource_attr_*_sync() functions and prohibits calling
update_resource_attr() soley.

Change-Id: Id3c0b19c6b4a78a6c7a018d8ead7d95f2cd8f4f1
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
include/util/resource.h
src/util/resource.c