code-guideline: Tag name should be a unique identifier

Following are the changes to variable names that are matching
with tag names (Rule 5.7 violations)

In kernel.h, event_type is matching with a tag name in
lib/os/onoff.c. Added a _ prefix to event_type and
also to the macro argument names.

In userspace.c, *dyn_obj is matching with the tag name
dyn_obj in the file itslef. Changed it to dyn

In device.h, device_mmio.h, init.h and init.c,
changed the *device to dev. Except for one change in
init.h

Signed-off-by: Spoorthy Priya Yerabolu <spoorthy.priya.yerabolu@intel.com>
This commit is contained in:
Spoorthy Priya Yerabolu 2020-08-25 03:11:16 -07:00 committed by Anas Nashif
commit 9247e8bc44
6 changed files with 94 additions and 94 deletions

View file

@ -5037,25 +5037,25 @@ struct k_poll_event {
};
};
#define K_POLL_EVENT_INITIALIZER(event_type, event_mode, event_obj) \
#define K_POLL_EVENT_INITIALIZER(_event_type, _event_mode, _event_obj) \
{ \
.poller = NULL, \
.type = event_type, \
.type = _event_type, \
.state = K_POLL_STATE_NOT_READY, \
.mode = event_mode, \
.mode = _event_mode, \
.unused = 0, \
.obj = event_obj, \
.obj = _event_obj, \
}
#define K_POLL_EVENT_STATIC_INITIALIZER(event_type, event_mode, event_obj, \
#define K_POLL_EVENT_STATIC_INITIALIZER(_event_type, _event_mode, _event_obj, \
event_tag) \
{ \
.tag = event_tag, \
.type = event_type, \
.type = _event_type, \
.state = K_POLL_STATE_NOT_READY, \
.mode = event_mode, \
.mode = _event_mode, \
.unused = 0, \
.obj = event_obj, \
.obj = _event_obj, \
}
/**