|
@@ -125,9 +125,9 @@ static u32 m5mols_swap_byte(u8 *data, u8 length)
|
|
if (length == 1)
|
|
if (length == 1)
|
|
return *data;
|
|
return *data;
|
|
else if (length == 2)
|
|
else if (length == 2)
|
|
- return be16_to_cpu(*((u16 *)data));
|
|
|
|
|
|
+ return be16_to_cpu(*((__be16 *)data));
|
|
else
|
|
else
|
|
- return be32_to_cpu(*((u32 *)data));
|
|
|
|
|
|
+ return be32_to_cpu(*((__be32 *)data));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -454,11 +454,6 @@ static int m5mols_get_version(struct v4l2_subdev *sd)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
- ver->fw = be16_to_cpu(ver->fw);
|
|
|
|
- ver->hw = be16_to_cpu(ver->hw);
|
|
|
|
- ver->param = be16_to_cpu(ver->param);
|
|
|
|
- ver->awb = be16_to_cpu(ver->awb);
|
|
|
|
-
|
|
|
|
v4l2_info(sd, "Manufacturer\t[%s]\n",
|
|
v4l2_info(sd, "Manufacturer\t[%s]\n",
|
|
is_manufacturer(info, REG_SAMSUNG_ELECTRO) ?
|
|
is_manufacturer(info, REG_SAMSUNG_ELECTRO) ?
|
|
"Samsung Electro-Machanics" :
|
|
"Samsung Electro-Machanics" :
|