Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95e3ec11 authored by David Howells's avatar David Howells Committed by Len Brown
Browse files

intel_idle: Fix a cast to pointer from integer of different size warning in intel_idle



Fix the following warning:

drivers/idle/intel_idle.c: In function 'intel_idle_cpuidle_devices_init':
drivers/idle/intel_idle.c:518:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

By making get_driver_data() return a long instead of an int.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 2e92c7ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ static struct cpuidle_state atom_cstates[MWAIT_MAX_NUM_CSTATES] = {
		.enter = &intel_idle },
};

static int get_driver_data(int cstate)
static long get_driver_data(int cstate)
{
	int driver_data;
	switch (cstate) {