Skip to content

Commit a12475f

Browse files
committed
Merge branch 'thermal-int340x'
Merge a fix for the attr.show callback prototype in the int340x thermal driver (Kees Cook). * thermal-int340x: thermal: int340x: Fix attr.show callback prototype
2 parents fa1ef24 + d0f6cfb commit a12475f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/thermal/intel/int340x_thermal/int3400_thermal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static int evaluate_odvp(struct int3400_thermal_priv *priv);
6868
struct odvp_attr {
6969
int odvp;
7070
struct int3400_thermal_priv *priv;
71-
struct kobj_attribute attr;
71+
struct device_attribute attr;
7272
};
7373

7474
static ssize_t data_vault_read(struct file *file, struct kobject *kobj,
@@ -311,7 +311,7 @@ static int int3400_thermal_get_uuids(struct int3400_thermal_priv *priv)
311311
return result;
312312
}
313313

314-
static ssize_t odvp_show(struct kobject *kobj, struct kobj_attribute *attr,
314+
static ssize_t odvp_show(struct device *dev, struct device_attribute *attr,
315315
char *buf)
316316
{
317317
struct odvp_attr *odvp_attr;

0 commit comments

Comments
 (0)