else
power_mode = DRX_POWER_DOWN;
- result = drx_ctrl(demod, DRX_CTRL_POWER_MODE, &power_mode);
+ result = drxj_ctrl(demod, DRX_CTRL_POWER_MODE, &power_mode);
if (result != 0) {
pr_err("Power state change failed\n");
return 0;
*status = 0;
- result = drx_ctrl(demod, DRX_CTRL_LOCK_STATUS, &lock_status);
+ result = drxj_ctrl(demod, DRX_CTRL_LOCK_STATUS, &lock_status);
if (result != 0) {
pr_err("drx39xxj: could not get lock status!\n");
*status = 0;
int result;
struct drx_sig_quality sig_quality;
- result = drx_ctrl(demod, DRX_CTRL_SIG_QUALITY, &sig_quality);
+ result = drxj_ctrl(demod, DRX_CTRL_SIG_QUALITY, &sig_quality);
if (result != 0) {
pr_err("drx39xxj: could not get ber!\n");
*ber = 0;
int result;
struct drx_sig_quality sig_quality;
- result = drx_ctrl(demod, DRX_CTRL_SIG_QUALITY, &sig_quality);
+ result = drxj_ctrl(demod, DRX_CTRL_SIG_QUALITY, &sig_quality);
if (result != 0) {
pr_err("drx39xxj: could not get signal strength!\n");
*strength = 0;
int result;
struct drx_sig_quality sig_quality;
- result = drx_ctrl(demod, DRX_CTRL_SIG_QUALITY, &sig_quality);
+ result = drxj_ctrl(demod, DRX_CTRL_SIG_QUALITY, &sig_quality);
if (result != 0) {
pr_err("drx39xxj: could not read snr!\n");
*snr = 0;
int result;
struct drx_sig_quality sig_quality;
- result = drx_ctrl(demod, DRX_CTRL_SIG_QUALITY, &sig_quality);
+ result = drxj_ctrl(demod, DRX_CTRL_SIG_QUALITY, &sig_quality);
if (result != 0) {
pr_err("drx39xxj: could not get uc blocks!\n");
*ucblocks = 0;
if (standard != state->current_standard || state->powered_up == 0) {
/* Set the standard (will be powered up if necessary */
- result = drx_ctrl(demod, DRX_CTRL_SET_STANDARD, &standard);
+ result = drxj_ctrl(demod, DRX_CTRL_SET_STANDARD, &standard);
if (result != 0) {
pr_err("Failed to set standard! result=%02x\n",
result);
channel.constellation = constellation;
/* program channel */
- result = drx_ctrl(demod, DRX_CTRL_SET_CHANNEL, &channel);
+ result = drxj_ctrl(demod, DRX_CTRL_SET_CHANNEL, &channel);
if (result != 0) {
pr_err("Failed to set channel!\n");
return -EINVAL;
/* Just for giggles, let's shut off the LNA again.... */
uio_data.uio = DRX_UIO1;
uio_data.value = false;
- result = drx_ctrl(demod, DRX_CTRL_UIO_WRITE, &uio_data);
+ result = drxj_ctrl(demod, DRX_CTRL_UIO_WRITE, &uio_data);
if (result != 0) {
pr_err("Failed to disable LNA!\n");
return 0;
return 0;
}
- result = drx_ctrl(demod, DRX_CTRL_I2C_BRIDGE, &i2c_gate_state);
+ result = drxj_ctrl(demod, DRX_CTRL_I2C_BRIDGE, &i2c_gate_state);
if (result != 0) {
pr_err("drx39xxj: could not open i2c gate [%d]\n",
result);
uio_cfg.uio = DRX_UIO1;
uio_cfg.mode = DRX_UIO_MODE_READWRITE;
/* Configure user-I/O #3: enable read/write */
- result = drx_ctrl(demod, DRX_CTRL_UIO_CFG, &uio_cfg);
+ result = drxj_ctrl(demod, DRX_CTRL_UIO_CFG, &uio_cfg);
if (result) {
pr_err("Failed to setup LNA GPIO!\n");
goto error;
uio_data.uio = DRX_UIO1;
uio_data.value = false;
- result = drx_ctrl(demod, DRX_CTRL_UIO_WRITE, &uio_data);
+ result = drxj_ctrl(demod, DRX_CTRL_UIO_WRITE, &uio_data);
if (result != 0) {
pr_err("Failed to disable LNA!\n");
goto error;