aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/dmasound
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-02 20:52:17 -0400
committerPaul Mackerras <paulus@samba.org>2007-04-12 13:55:17 -0400
commita7edd0e676d51145ae634a2acf7a447e319200fa (patch)
tree24047c72a067e7c670fca186d89b1b7c032e1bde /sound/oss/dmasound
parent6c2d046980299d52d78b2738ad7f11fc593dea75 (diff)
[POWERPC] get_property returns const
This just tidies up some of the remains. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'sound/oss/dmasound')
-rw-r--r--sound/oss/dmasound/dmasound_awacs.c20
-rw-r--r--sound/oss/dmasound/tas_common.c4
2 files changed, 12 insertions, 12 deletions
diff --git a/sound/oss/dmasound/dmasound_awacs.c b/sound/oss/dmasound/dmasound_awacs.c
index f8a49bd17a13..7aa4d43ae6cd 100644
--- a/sound/oss/dmasound/dmasound_awacs.c
+++ b/sound/oss/dmasound/dmasound_awacs.c
@@ -578,7 +578,7 @@ tas_mixer_ioctl(u_int cmd, u_long arg)
578} 578}
579 579
580static void __init 580static void __init
581tas_init_frame_rates(unsigned int *prop, unsigned int l) 581tas_init_frame_rates(const unsigned int *prop, unsigned int l)
582{ 582{
583 int i ; 583 int i ;
584 if (prop) { 584 if (prop) {
@@ -2651,7 +2651,7 @@ get_expansion_type(void)
2651*/ 2651*/
2652 2652
2653static void __init 2653static void __init
2654awacs_init_frame_rates(unsigned int *prop, unsigned int l) 2654awacs_init_frame_rates(const unsigned int *prop, unsigned int l)
2655{ 2655{
2656 int i ; 2656 int i ;
2657 if (prop) { 2657 if (prop) {
@@ -2674,7 +2674,7 @@ awacs_init_frame_rates(unsigned int *prop, unsigned int l)
2674} 2674}
2675 2675
2676static void __init 2676static void __init
2677burgundy_init_frame_rates(unsigned int *prop, unsigned int l) 2677burgundy_init_frame_rates(const unsigned int *prop, unsigned int l)
2678{ 2678{
2679 int temp[9] ; 2679 int temp[9] ;
2680 int i = 0 ; 2680 int i = 0 ;
@@ -2700,7 +2700,7 @@ if (i > 1){
2700} 2700}
2701 2701
2702static void __init 2702static void __init
2703daca_init_frame_rates(unsigned int *prop, unsigned int l) 2703daca_init_frame_rates(const unsigned int *prop, unsigned int l)
2704{ 2704{
2705 int temp[9] ; 2705 int temp[9] ;
2706 int i = 0 ; 2706 int i = 0 ;
@@ -2727,7 +2727,7 @@ if (i > 1){
2727} 2727}
2728 2728
2729static void __init 2729static void __init
2730init_frame_rates(unsigned int *prop, unsigned int l) 2730init_frame_rates(const unsigned int *prop, unsigned int l)
2731{ 2731{
2732 switch (awacs_revision) { 2732 switch (awacs_revision) {
2733 case AWACS_TUMBLER: 2733 case AWACS_TUMBLER:
@@ -2972,21 +2972,21 @@ printk("dmasound_pmac: Awacs/Screamer Codec Mfct: %d Rev %d\n", mfg, rev);
2972 */ 2972 */
2973 2973
2974 if (info) { 2974 if (info) {
2975 unsigned int *prop, l; 2975 const unsigned int *prop;
2976 unsigned int l;
2976 2977
2977 sound_device_id = 0; 2978 sound_device_id = 0;
2978 /* device ID appears post g3 b&w */ 2979 /* device ID appears post g3 b&w */
2979 prop = (unsigned int *)get_property(info, "device-id", NULL); 2980 prop = get_property(info, "device-id", NULL);
2980 if (prop != 0) 2981 if (prop != 0)
2981 sound_device_id = *prop; 2982 sound_device_id = *prop;
2982 2983
2983 /* look for a property saying what sample rates 2984 /* look for a property saying what sample rates
2984 are available */ 2985 are available */
2985 2986
2986 prop = (unsigned int *)get_property(info, "sample-rates", &l); 2987 prop = get_property(info, "sample-rates", &l);
2987 if (prop == 0) 2988 if (prop == 0)
2988 prop = (unsigned int *) get_property 2989 prop = get_property(info, "output-frame-rates", &l);
2989 (info, "output-frame-rates", &l);
2990 2990
2991 /* if it's there use it to set up frame rates */ 2991 /* if it's there use it to set up frame rates */
2992 init_frame_rates(prop, l) ; 2992 init_frame_rates(prop, l) ;
diff --git a/sound/oss/dmasound/tas_common.c b/sound/oss/dmasound/tas_common.c
index 665e85b5562b..5e2c0aed5472 100644
--- a/sound/oss/dmasound/tas_common.c
+++ b/sound/oss/dmasound/tas_common.c
@@ -190,7 +190,7 @@ tas_cleanup(void)
190int __init 190int __init
191tas_init(int driver_id, const char *driver_name) 191tas_init(int driver_id, const char *driver_name)
192{ 192{
193 u32* paddr; 193 const u32* paddr;
194 194
195 printk(KERN_INFO "tas driver [%s])\n", driver_name); 195 printk(KERN_INFO "tas driver [%s])\n", driver_name);
196 196
@@ -200,7 +200,7 @@ tas_init(int driver_id, const char *driver_name)
200 tas_node = find_devices("deq"); 200 tas_node = find_devices("deq");
201 if (tas_node == NULL) 201 if (tas_node == NULL)
202 return -ENODEV; 202 return -ENODEV;
203 paddr = (u32 *)get_property(tas_node, "i2c-address", NULL); 203 paddr = get_property(tas_node, "i2c-address", NULL);
204 if (paddr) { 204 if (paddr) {
205 tas_i2c_address = (*paddr) >> 1; 205 tas_i2c_address = (*paddr) >> 1;
206 printk(KERN_INFO "using i2c address: 0x%x from device-tree\n", 206 printk(KERN_INFO "using i2c address: 0x%x from device-tree\n",