#ifndef __ACPI_ACPI_THERMAL_H #define __ACPI_ACPI_THERMAL_H #include #define ACPI_THERMAL_MAGIC 's' #define ACPI_THERMAL_GET_TRT_LEN _IOR(ACPI_THERMAL_MAGIC, 1, unsigned long) #define ACPI_THERMAL_GET_ART_LEN _IOR(ACPI_THERMAL_MAGIC, 2, unsigned long) #define ACPI_THERMAL_GET_TRT_COUNT _IOR(ACPI_THERMAL_MAGIC, 3, unsigned long) #define ACPI_THERMAL_GET_ART_COUNT _IOR(ACPI_THERMAL_MAGIC, 4, unsigned long) #define ACPI_THERMAL_GET_TRT _IOR(ACPI_THERMAL_MAGIC, 5, unsigned long) #define ACPI_THERMAL_GET_ART _IOR(ACPI_THERMAL_MAGIC, 6, unsigned long) struct art { acpi_handle source; acpi_handle target; u64 weight; u64 ac0_max; u64 ac1_max; u64 ac2_max; u64 ac3_max; u64 ac4_max; u64 ac5_max; u64 ac6_max; u64 ac7_max; u64 ac8_max; u64 ac9_max; } __packed; struct trt { acpi_handle source; acpi_handle target; u64 influence; u64 sample_period; u64 reverved1; u64 reverved2; u64 reverved3; u64 reverved4; } __packed; #define ACPI_NR_ART_ELEMENTS 13 /* for usrspace */ union art_object { struct { char source_device[8]; /* ACPI single name */ char target_device[8]; /* ACPI single name */ u64 weight; u64 ac0_max_level; u64 ac1_max_level; u64 ac2_max_level; u64 ac3_max_level; u64 ac4_max_level; u64 ac5_max_level; u64 ac6_max_level; u64 ac7_max_level; u64 ac8_max_level; u64 ac9_max_level; }; u64 __data[ACPI_NR_ART_ELEMENTS]; }; union trt_object { struct { char source_device[8]; /* ACPI single name */ char target_device[8]; /* ACPI single name */ u64 influence; u64 sample_period; u64 reserved[4]; }; u64 __data[8]; }; #ifdef __KERNEL__ int acpi_thermal_rel_misc_device_add(acpi_handle handle); int acpi_thermal_rel_misc_device_remove(acpi_handle handle); int acpi_parse_art(acpi_handle handle, int *art_count, struct art **arts, bool create_dev); int acpi_parse_trt(acpi_handle handle, int *trt_count, struct trt **trts, bool create_dev); #endif #endif /* __ACPI_ACPI_THERMAL_H */ c893fd29dab9'>commitdiff
path: root/drivers/usb/misc/usb_u132.h
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-01-25 00:54:07 +0530
committerDan Williams <dan.j.williams@intel.com>2017-01-31 18:16:30 -0800
commit970d14e3989160ee9e97c7d75ecbc893fd29dab9 (patch)
tree4a731cac4efedb17f86a912ec56c151d26792abe /drivers/usb/misc/usb_u132.h
parent7a308bb3016f57e5be11a677d15b821536419d36 (diff)
nvdimm: constify device_type structures
Declare device_type structure as const as it is only stored in the type field of a device structure. This field is of type const, so add const to declaration of device_type structure. File size before: text data bss dec hex filename 19278 3199 16 22493 57dd nvdimm/namespace_devs.o File size after: text data bss dec hex filename 19929 3160 16 23105 5a41 nvdimm/namespace_devs.o Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/usb/misc/usb_u132.h')