hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/max98927.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * max98927.c -- MAX98927 ALSA Soc Audio driver
34 *
45 * Copyright (C) 2016-2017 Maxim Integrated Products
56 * Author: Ryan Lee <ryans.lee@maximintegrated.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License as published by the
9
- * Free Software Foundation; either version 2 of the License, or (at your
10
- * option) any later version.
117 */
128
139 #include <linux/acpi.h>
....@@ -505,7 +501,7 @@
505501
506502 switch (event) {
507503 case SND_SOC_DAPM_PRE_PMU:
508
- max98927->tdm_mode = 0;
504
+ max98927->tdm_mode = false;
509505 break;
510506 case SND_SOC_DAPM_POST_PMU:
511507 regmap_update_bits(max98927->regmap,
....@@ -886,11 +882,11 @@
886882 if (!of_property_read_u32(i2c->dev.of_node,
887883 "interleave_mode", &value)) {
888884 if (value > 0)
889
- max98927->interleave_mode = 1;
885
+ max98927->interleave_mode = true;
890886 else
891
- max98927->interleave_mode = 0;
887
+ max98927->interleave_mode = false;
892888 } else
893
- max98927->interleave_mode = 0;
889
+ max98927->interleave_mode = false;
894890
895891 /* regmap initialization */
896892 max98927->regmap