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