mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
This patch introduces a sysfs group entry for the UFS attributes. The group adds "attributes" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The attributes are shown as hexadecimal numbers. The full information about the attributes could be found at UFS specifications 2.1. Signed-off-by: Stanislav Nijnikov <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
18 lines
427 B
C
18 lines
427 B
C
/* SPDX-License-Identifier: GPL-2.0
|
|
* Copyright (C) 2018 Western Digital Corporation
|
|
*/
|
|
|
|
#ifndef __UFS_SYSFS_H__
|
|
#define __UFS_SYSFS_H__
|
|
|
|
#include <linux/sysfs.h>
|
|
|
|
#include "ufshcd.h"
|
|
|
|
void ufs_sysfs_add_nodes(struct device *dev);
|
|
void ufs_sysfs_remove_nodes(struct device *dev);
|
|
|
|
extern const struct attribute_group ufs_sysfs_unit_descriptor_group;
|
|
extern const struct attribute_group ufs_sysfs_lun_attributes_group;
|
|
#endif
|