Commit f42e7662 authored by Wey-Yi Guy's avatar Wey-Yi Guy
Browse files

iwlagn: temperature should be measure for all _agn devices



Thermal throttling functions are available for all _agn devices, call the
functions directly.

Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent b7af6a99
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -214,11 +214,6 @@ static struct iwl_lib_ops iwl1000_lib = {
	},
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
	.tt_ops = {
		.lower_power_detection = iwl_tt_is_low_power_state,
		.tt_power_mode = iwl_tt_current_power_mode,
		.ct_kill_check = iwl_check_for_ct_kill,
	}
};

static const struct iwl_ops iwl1000_ops = {
+0 −5
Original line number Diff line number Diff line
@@ -298,11 +298,6 @@ static struct iwl_lib_ops iwl2000_lib = {
	},
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
	.tt_ops = {
		.lower_power_detection = iwl_tt_is_low_power_state,
		.tt_power_mode = iwl_tt_current_power_mode,
		.ct_kill_check = iwl_check_for_ct_kill,
	}
};

static const struct iwl_ops iwl2000_ops = {
+0 −10
Original line number Diff line number Diff line
@@ -383,11 +383,6 @@ static struct iwl_lib_ops iwl5000_lib = {
	},
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
	.tt_ops = {
		.lower_power_detection = iwl_tt_is_low_power_state,
		.tt_power_mode = iwl_tt_current_power_mode,
		.ct_kill_check = iwl_check_for_ct_kill,
	}
};

static struct iwl_lib_ops iwl5150_lib = {
@@ -435,11 +430,6 @@ static struct iwl_lib_ops iwl5150_lib = {
	},
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
	.tt_ops = {
		.lower_power_detection = iwl_tt_is_low_power_state,
		.tt_power_mode = iwl_tt_current_power_mode,
		.ct_kill_check = iwl_check_for_ct_kill,
	}
};

static const struct iwl_ops iwl5000_ops = {
+0 −10
Original line number Diff line number Diff line
@@ -323,11 +323,6 @@ static struct iwl_lib_ops iwl6000_lib = {
	},
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
	.tt_ops = {
		.lower_power_detection = iwl_tt_is_low_power_state,
		.tt_power_mode = iwl_tt_current_power_mode,
		.ct_kill_check = iwl_check_for_ct_kill,
	}
};

static struct iwl_lib_ops iwl6030_lib = {
@@ -377,11 +372,6 @@ static struct iwl_lib_ops iwl6030_lib = {
	},
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
	.tt_ops = {
		.lower_power_detection = iwl_tt_is_low_power_state,
		.tt_power_mode = iwl_tt_current_power_mode,
		.ct_kill_check = iwl_check_for_ct_kill,
	}
};

static struct iwl_nic_ops iwl6050_nic_ops = {
+0 −9
Original line number Diff line number Diff line
@@ -139,12 +139,6 @@ struct iwl_temp_ops {
	void (*temperature)(struct iwl_priv *priv);
};

struct iwl_tt_ops {
	bool (*lower_power_detection)(struct iwl_priv *priv);
	u8 (*tt_power_mode)(struct iwl_priv *priv);
	bool (*ct_kill_check)(struct iwl_priv *priv);
};

struct iwl_lib_ops {
	/* set hw dependent parameters */
	int (*set_hw_params)(struct iwl_priv *priv);
@@ -190,9 +184,6 @@ struct iwl_lib_ops {
	void (*dev_txfifo_flush)(struct iwl_priv *priv, u16 flush_control);

	struct iwl_debugfs_ops debugfs_ops;

	/* thermal throttling */
	struct iwl_tt_ops tt_ops;
};

struct iwl_led_ops {
Loading