pcm1681.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | pcm1681.c (a074ae0ed68385ee403e4247ce8274705fe9c4e0) |
---|---|
1/* 2 * PCM1681 ASoC codec driver 3 * 4 * Copyright (c) StreamUnlimited GmbH 2013 5 * Marek Belisko <marek.belisko@streamunlimited.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 59 unchanged lines hidden (view full) --- 68 { 0x13, 0x00 }, 69}; 70 71static bool pcm1681_accessible_reg(struct device *dev, unsigned int reg) 72{ 73 return !((reg == 0x00) || (reg == 0x0f)); 74} 75 | 1/* 2 * PCM1681 ASoC codec driver 3 * 4 * Copyright (c) StreamUnlimited GmbH 2013 5 * Marek Belisko <marek.belisko@streamunlimited.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 59 unchanged lines hidden (view full) --- 68 { 0x13, 0x00 }, 69}; 70 71static bool pcm1681_accessible_reg(struct device *dev, unsigned int reg) 72{ 73 return !((reg == 0x00) || (reg == 0x0f)); 74} 75 |
76static bool pcm1681_writeable_reg(struct device *dev, unsigned register reg) | 76static bool pcm1681_writeable_reg(struct device *dev, unsigned int reg) |
77{ 78 return pcm1681_accessible_reg(dev, reg) && 79 (reg != PCM1681_ZERO_DETECT_STATUS); 80} 81 82struct pcm1681_private { 83 struct regmap *regmap; 84 unsigned int format; --- 265 unchanged lines hidden --- | 77{ 78 return pcm1681_accessible_reg(dev, reg) && 79 (reg != PCM1681_ZERO_DETECT_STATUS); 80} 81 82struct pcm1681_private { 83 struct regmap *regmap; 84 unsigned int format; --- 265 unchanged lines hidden --- |