[PATCH v2 02/11] node_device: refactor mdev attributes handling