{
        struct v4l2_ctrl *vblank = sensor->vblank;
        struct v4l2_ctrl *hblank = sensor->hblank;
-       uint16_t min_fll, max_fll, min_llp, max_llp, min_lbp;
+       u16 min_fll, max_fll, min_llp, max_llp, min_lbp;
        int min, max;
 
        if (sensor->binning_vertical > 1 || sensor->binning_horizontal > 1) {
 
 #include "ccs.h"
 #include "ccs-limits.h"
 
-static uint32_t float_to_u32_mul_1000000(struct i2c_client *client,
-                                        uint32_t phloat)
+static u32 float_to_u32_mul_1000000(struct i2c_client *client, u32 phloat)
 {
-       int32_t exp;
-       uint64_t man;
+       s32 exp;
+       u64 man;
 
        if (phloat >= 0x80000000) {
                dev_err(&client->dev, "this is a negative number\n");
 unsigned int ccs_reg_width(u32 reg)
 {
        if (reg & CCS_FL_16BIT)
-               return sizeof(uint16_t);
+               return sizeof(u16);
        if (reg & CCS_FL_32BIT)
-               return sizeof(uint32_t);
+               return sizeof(u32);
 
-       return sizeof(uint8_t);
+       return sizeof(u8);
 }
 
 static u32 ireal32_to_u32_mul_1000000(struct i2c_client *client, u32 val)
        size_t i;
 
        for (i = 0; i < num_regs; i++, regs++) {
-               uint8_t *data;
+               u8 *data;
 
                if (regs->addr + regs->len < CCS_REG_ADDR(reg) + width)
                        continue;
                data = ®s->value[CCS_REG_ADDR(reg) - regs->addr];
 
                switch (width) {
-               case sizeof(uint8_t):
+               case sizeof(u8):
                        *val = *data;
                        break;
-               case sizeof(uint16_t):
+               case sizeof(u16):
                        *val = get_unaligned_be16(data);
                        break;
-               case sizeof(uint32_t):
+               case sizeof(u32):
                        *val = get_unaligned_be32(data);
                        break;
                default:
 
        unsigned short i2c_addr_dfl;    /* Default i2c addr */
        unsigned short i2c_addr_alt;    /* Alternate i2c addr */
 
-       uint32_t ext_clk;               /* sensor external clk */
+       u32 ext_clk;                    /* sensor external clk */
 
        unsigned int lanes;             /* Number of CSI-2 lanes */
-       uint32_t csi_signalling_mode;   /* CCS_CSI_SIGNALLING_MODE_* */
-       uint64_t *op_sys_clock;
+       u32 csi_signalling_mode;        /* CCS_CSI_SIGNALLING_MODE_* */
+       u64 *op_sys_clock;
 
        enum ccs_module_board_orient module_board_orient;