Skip to content

Commit a677c8f

Browse files
ozbenhLinus Torvalds
authored andcommitted
[PATCH] aoa fabric layout: clean up messages
This patch cleans up the printk's in the layout fabric and also makes it display which type of GPIO access it is going to use. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent e53fcab commit a677c8f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎sound/aoa/fabrics/snd-aoa-fabric-layout.c‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,11 +950,12 @@ static int aoa_fabric_layout_probe(struct soundbus_dev *sdev)
950950
layout_id = (unsigned int *) get_property(sound, "layout-id", NULL);
951951
if (!layout_id)
952952
goto outnodev;
953-
printk(KERN_INFO "snd-aoa-fabric-layout: found bus with layout %d ", *layout_id);
953+
printk(KERN_INFO "snd-aoa-fabric-layout: found bus with layout %d\n",
954+
*layout_id);
954955

955956
layout = find_layout_by_id(*layout_id);
956957
if (!layout) {
957-
printk("(no idea how to handle)\n");
958+
printk(KERN_ERR "snd-aoa-fabric-layout: unknown layout\n");
958959
goto outnodev;
959960
}
960961

@@ -972,15 +973,17 @@ static int aoa_fabric_layout_probe(struct soundbus_dev *sdev)
972973
case 51: /* PowerBook5,4 */
973974
case 58: /* Mac Mini */
974975
ldev->gpio.methods = ftr_gpio_methods;
976+
printk(KERN_DEBUG
977+
"snd-aoa-fabric-layout: Using direct GPIOs\n");
975978
break;
976979
default:
977980
ldev->gpio.methods = pmf_gpio_methods;
981+
printk(KERN_DEBUG
982+
"snd-aoa-fabric-layout: Using PMF GPIOs\n");
978983
}
979984
ldev->selfptr_headphone.ptr = ldev;
980985
ldev->selfptr_lineout.ptr = ldev;
981986
sdev->ofdev.dev.driver_data = ldev;
982-
983-
printk("(using)\n");
984987
list_add(&ldev->list, &layouts_list);
985988
layouts_list_items++;
986989

0 commit comments

Comments
 (0)