[PATCH v3 02/12] node_device: refactor mdev attributes handling