|
@@ -233,7 +233,7 @@ static void ath9k_reg_notifier(struct wiphy *wiphy,
|
|
|
|
|
|
static unsigned int ath9k_regread(void *hw_priv, u32 reg_offset)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
__be32 val, reg = cpu_to_be32(reg_offset);
|
|
@@ -255,7 +255,7 @@ static unsigned int ath9k_regread(void *hw_priv, u32 reg_offset)
|
|
|
static void ath9k_multi_regread(void *hw_priv, u32 *addr,
|
|
|
u32 *val, u16 count)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
__be32 tmpaddr[8];
|
|
@@ -301,7 +301,7 @@ static void ath9k_regwrite_multi(struct ath_common *common)
|
|
|
|
|
|
static void ath9k_regwrite_single(void *hw_priv, u32 val, u32 reg_offset)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
const __be32 buf[2] = {
|
|
@@ -322,7 +322,7 @@ static void ath9k_regwrite_single(void *hw_priv, u32 val, u32 reg_offset)
|
|
|
|
|
|
static void ath9k_regwrite_buffer(void *hw_priv, u32 val, u32 reg_offset)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
|
|
@@ -345,7 +345,7 @@ static void ath9k_regwrite_buffer(void *hw_priv, u32 val, u32 reg_offset)
|
|
|
|
|
|
static void ath9k_regwrite(void *hw_priv, u32 val, u32 reg_offset)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
|
|
@@ -357,7 +357,7 @@ static void ath9k_regwrite(void *hw_priv, u32 val, u32 reg_offset)
|
|
|
|
|
|
static void ath9k_enable_regwrite_buffer(void *hw_priv)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
|
|
@@ -366,7 +366,7 @@ static void ath9k_enable_regwrite_buffer(void *hw_priv)
|
|
|
|
|
|
static void ath9k_regwrite_flush(void *hw_priv)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
|
|
@@ -383,7 +383,7 @@ static void ath9k_regwrite_flush(void *hw_priv)
|
|
|
static void ath9k_reg_rmw_buffer(void *hw_priv,
|
|
|
u32 reg_offset, u32 set, u32 clr)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
u32 rsp_status;
|
|
@@ -421,7 +421,7 @@ static void ath9k_reg_rmw_buffer(void *hw_priv,
|
|
|
|
|
|
static void ath9k_reg_rmw_flush(void *hw_priv)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
u32 rsp_status;
|
|
@@ -453,7 +453,7 @@ static void ath9k_reg_rmw_flush(void *hw_priv)
|
|
|
|
|
|
static void ath9k_enable_rmw_buffer(void *hw_priv)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
|
|
@@ -466,7 +466,7 @@ static void ath9k_enable_rmw_buffer(void *hw_priv)
|
|
|
static u32 ath9k_reg_rmw_single(void *hw_priv,
|
|
|
u32 reg_offset, u32 set, u32 clr)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
struct register_rmw buf, buf_ret;
|
|
@@ -490,7 +490,7 @@ static u32 ath9k_reg_rmw_single(void *hw_priv,
|
|
|
|
|
|
static u32 ath9k_reg_rmw(void *hw_priv, u32 reg_offset, u32 set, u32 clr)
|
|
|
{
|
|
|
- struct ath_hw *ah = (struct ath_hw *) hw_priv;
|
|
|
+ struct ath_hw *ah = hw_priv;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv;
|
|
|
|