lkml.org 
[lkml]   [2011]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/5] TPS65911: Add new irq definitions
On Tue, May 03, 2011 at 11:18:56AM -0500, Jorge Eduardo Candelaria wrote:

> + if (tps65910_chip_id(tps65910) == TPS65911) {
> + tps65910->read(tps65910, TPS65910_INT_STS3, 1, &reg);
> + irq_sts |= reg << 16;
> + }

switch statements feel better for future proofing - if your hardware
guys do another design derived from this base you'll need to add another
case in here.


\
 
 \ /
  Last update: 2011-05-03 19:33    [W:0.030 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site