Skip to content

Commit b204fca

Browse files
committed
fix compiler warning, our parameter is an unsigned long actually
1 parent a61d832 commit b204fca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hdaps.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,9 @@ static struct attribute_group hdaps_attribute_group = {
714714
/* hdaps_dmi_match_invert - found an inverted match. */
715715
static int __init hdaps_dmi_match_invert(const struct dmi_system_id *id)
716716
{
717-
int orient = (int) id->driver_data;
717+
unsigned int orient = (kernel_ulong_t) id->driver_data;
718718
hdaps_invert = orient;
719-
printk(KERN_INFO "hdaps: %s detected, setting orientation %d\n",
719+
printk(KERN_INFO "hdaps: %s detected, setting orientation %u\n",
720720
id->ident, orient);
721721
return 1; /* stop enumeration */
722722
}

0 commit comments

Comments
 (0)