pcm179x.c (27fd38c5226ed0f1712d071880fa8e739eb78650) | pcm179x.c (a074ae0ed68385ee403e4247ce8274705fe9c4e0) |
---|---|
1/* 2 * PCM179X ASoC codec driver 3 * 4 * Copyright (c) Amarula Solutions B.V. 2013 5 * 6 * Michael Trimarchi <michael@amarulasolutions.com> 7 * 8 * This program is free software; you can redistribute it and/or --- 45 unchanged lines hidden (view full) --- 54 { 0x17, 0x00 }, 55}; 56 57static bool pcm179x_accessible_reg(struct device *dev, unsigned int reg) 58{ 59 return reg >= 0x10 && reg <= 0x17; 60} 61 | 1/* 2 * PCM179X ASoC codec driver 3 * 4 * Copyright (c) Amarula Solutions B.V. 2013 5 * 6 * Michael Trimarchi <michael@amarulasolutions.com> 7 * 8 * This program is free software; you can redistribute it and/or --- 45 unchanged lines hidden (view full) --- 54 { 0x17, 0x00 }, 55}; 56 57static bool pcm179x_accessible_reg(struct device *dev, unsigned int reg) 58{ 59 return reg >= 0x10 && reg <= 0x17; 60} 61 |
62static bool pcm179x_writeable_reg(struct device *dev, unsigned register reg) | 62static bool pcm179x_writeable_reg(struct device *dev, unsigned int reg) |
63{ 64 bool accessible; 65 66 accessible = pcm179x_accessible_reg(dev, reg); 67 68 return accessible && reg != 0x16 && reg != 0x17; 69} 70 --- 173 unchanged lines hidden --- | 63{ 64 bool accessible; 65 66 accessible = pcm179x_accessible_reg(dev, reg); 67 68 return accessible && reg != 0x16 && reg != 0x17; 69} 70 --- 173 unchanged lines hidden --- |