lp8755.c (c25141062a82ae8bddced1b3ce2b57a1c0efabe0) | lp8755.c (48f1b4efd67c922eff113f247533cbe175b1491e) |
---|---|
1/* 2 * LP8755 High Performance Power Management Unit : System Interface Driver 3 * (based on rev. 0.26) 4 * Copyright 2012 Texas Instruments 5 * 6 * Author: Daniel(Geon Si) Jeong <daniel.jeong@ti.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 372 unchanged lines hidden (view full) --- 381 ret = lp8755_read(pchip, 0x0E, &flag1); 382 if (ret < 0) 383 goto err_i2c; 384 /* clear flag register to pull up int. pin */ 385 ret = lp8755_write(pchip, 0x0E, 0x00); 386 if (ret < 0) 387 goto err_i2c; 388 | 1/* 2 * LP8755 High Performance Power Management Unit : System Interface Driver 3 * (based on rev. 0.26) 4 * Copyright 2012 Texas Instruments 5 * 6 * Author: Daniel(Geon Si) Jeong <daniel.jeong@ti.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 372 unchanged lines hidden (view full) --- 381 ret = lp8755_read(pchip, 0x0E, &flag1); 382 if (ret < 0) 383 goto err_i2c; 384 /* clear flag register to pull up int. pin */ 385 ret = lp8755_write(pchip, 0x0E, 0x00); 386 if (ret < 0) 387 goto err_i2c; 388 |
389 /* send OCP event to all regualtor devices */ | 389 /* send OCP event to all regulator devices */ |
390 if ((flag1 & 0x01) && (pchip->irqmask & 0x01)) 391 for (icnt = 0; icnt < LP8755_BUCK_MAX; icnt++) 392 if (pchip->rdev[icnt] != NULL) 393 regulator_notifier_call_chain(pchip->rdev[icnt], 394 LP8755_EVENT_OCP, 395 NULL); 396 | 390 if ((flag1 & 0x01) && (pchip->irqmask & 0x01)) 391 for (icnt = 0; icnt < LP8755_BUCK_MAX; icnt++) 392 if (pchip->rdev[icnt] != NULL) 393 regulator_notifier_call_chain(pchip->rdev[icnt], 394 LP8755_EVENT_OCP, 395 NULL); 396 |
397 /* send OVP event to all regualtor devices */ | 397 /* send OVP event to all regulator devices */ |
398 if ((flag1 & 0x02) && (pchip->irqmask & 0x02)) 399 for (icnt = 0; icnt < LP8755_BUCK_MAX; icnt++) 400 if (pchip->rdev[icnt] != NULL) 401 regulator_notifier_call_chain(pchip->rdev[icnt], 402 LP8755_EVENT_OVP, 403 NULL); 404 return IRQ_HANDLED; 405 --- 143 unchanged lines hidden --- | 398 if ((flag1 & 0x02) && (pchip->irqmask & 0x02)) 399 for (icnt = 0; icnt < LP8755_BUCK_MAX; icnt++) 400 if (pchip->rdev[icnt] != NULL) 401 regulator_notifier_call_chain(pchip->rdev[icnt], 402 LP8755_EVENT_OVP, 403 NULL); 404 return IRQ_HANDLED; 405 --- 143 unchanged lines hidden --- |