drivers: device: do not reuse tag name 'device'

Do not reuse tag name (misra rule 5.7).

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-03-22 10:28:25 -04:00
commit 5d6c219210
47 changed files with 118 additions and 117 deletions

View file

@ -45,11 +45,11 @@ static inline int espi_manage_callback(sys_slist_t *callbacks,
* @brief Generic function to go through and fire callback from a callback list.
*
* @param list A pointer on the espi callback list.
* @param device A pointer on the espi driver instance.
* @param dev A pointer on the espi driver instance.
* @param pins The details on the event that triggered the callback.
*/
static inline void espi_send_callbacks(sys_slist_t *list,
const struct device *device,
const struct device *dev,
struct espi_event evt)
{
struct espi_callback *cb, *tmp;
@ -57,7 +57,7 @@ static inline void espi_send_callbacks(sys_slist_t *list,
SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cb, tmp, node) {
if (cb->evt_type & evt.evt_type) {
__ASSERT(cb->handler, "No callback handler!");
cb->handler(device, cb, evt);
cb->handler(dev, cb, evt);
}
}
}