Lines Matching refs:lnbp22
46 struct lnbp22 { struct
54 struct lnbp22 *lnbp22 = (struct lnbp22 *)fe->sec_priv; in lnbp22_set_voltage() argument
58 .buf = (char *)&lnbp22->config, in lnbp22_set_voltage()
59 .len = sizeof(lnbp22->config), in lnbp22_set_voltage()
65 lnbp22->config[3] = 0x60; /* Power down */ in lnbp22_set_voltage()
70 lnbp22->config[3] |= LNBP22_EN; in lnbp22_set_voltage()
73 lnbp22->config[3] |= (LNBP22_EN | LNBP22_VSEL); in lnbp22_set_voltage()
79 dprintk(1, "%s: 0x%02x)\n", __func__, lnbp22->config[3]); in lnbp22_set_voltage()
80 return (i2c_transfer(lnbp22->i2c, &msg, 1) == 1) ? 0 : -EIO; in lnbp22_set_voltage()
85 struct lnbp22 *lnbp22 = (struct lnbp22 *) fe->sec_priv; in lnbp22_enable_high_lnb_voltage() local
89 .buf = (char *)&lnbp22->config, in lnbp22_enable_high_lnb_voltage()
90 .len = sizeof(lnbp22->config), in lnbp22_enable_high_lnb_voltage()
95 lnbp22->config[3] |= LNBP22_LLC; in lnbp22_enable_high_lnb_voltage()
97 lnbp22->config[3] &= ~LNBP22_LLC; in lnbp22_enable_high_lnb_voltage()
99 return (i2c_transfer(lnbp22->i2c, &msg, 1) == 1) ? 0 : -EIO; in lnbp22_enable_high_lnb_voltage()
116 struct lnbp22 *lnbp22 = kmalloc(sizeof(struct lnbp22), GFP_KERNEL); in lnbp22_attach() local
117 if (!lnbp22) in lnbp22_attach()
121 lnbp22->config[0] = 0x00; /* ? */ in lnbp22_attach()
122 lnbp22->config[1] = 0x28; /* ? */ in lnbp22_attach()
123 lnbp22->config[2] = 0x48; /* ? */ in lnbp22_attach()
124 lnbp22->config[3] = 0x60; /* Power down */ in lnbp22_attach()
125 lnbp22->i2c = i2c; in lnbp22_attach()
126 fe->sec_priv = lnbp22; in lnbp22_attach()
131 kfree(lnbp22); in lnbp22_attach()