summaryrefslogtreecommitdiffstatshomepage
path: root/stm/adc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-15 11:34:50 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-15 11:34:50 +0000
commita71c83a1d1aeca1d81d7c673929f8e836dec131e (patch)
tree5c49441e19c3feffbc792eec7ecfbc3ca3036830 /stm/adc.c
parent8ac72b9d000ecc48a2d558bdb7c73c7f98d4be62 (diff)
downloadmicropython-a71c83a1d1aeca1d81d7c673929f8e836dec131e.tar.gz
micropython-a71c83a1d1aeca1d81d7c673929f8e836dec131e.zip
Change mp_obj_type_t.name from const char * to qstr.
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
Diffstat (limited to 'stm/adc.c')
-rw-r--r--stm/adc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stm/adc.c b/stm/adc.c
index 51d3e9f91b..89f137a08c 100644
--- a/stm/adc.c
+++ b/stm/adc.c
@@ -333,7 +333,7 @@ static const mp_method_t adc_all_methods[] = {
static const mp_obj_type_t adc_all_type = {
{ &mp_const_type },
- "ADC_all",
+ .name = MP_QSTR_ADC,
.print = adc_all_print,
.methods = adc_all_methods,
};
@@ -387,7 +387,7 @@ static const mp_method_t adc_methods[] = {
static const mp_obj_type_t adc_type = {
{ &mp_const_type },
- "ADC",
+ .name = MP_QSTR_ADC,
.print = adc_print,
.methods = adc_methods,
};