scripts/writesensor: make sensor map definition less cryptic

Use .name = value initialisers when generating the IdInfoMap, so it's
more obvious which members are being initialised.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Change-Id: If6d33883e02790f59e26fb72a1b783e8256aaca9
diff --git a/scripts/writesensor.mako.cpp b/scripts/writesensor.mako.cpp
index 709e70d..69a44f4 100644
--- a/scripts/writesensor.mako.cpp
+++ b/scripts/writesensor.mako.cpp
@@ -70,10 +70,25 @@
            sensorInterface = next(iter(interfaces))
        mutability = sensor.get("mutability", "Mutability::Read")
 %>
-        ${entityID},${instance},${sensorType},"${path}","${sensorInterface}",
-        ${readingType},${multiplier},${offsetB},${bExp},
-        ${offsetB * pow(10,bExp)}, ${rExp}, ${hasScale},${scale},"${unit}",
-        ${updateFunc},${getFunc},Mutability(${mutability}),${sensorNameFunc},{
+        .entityType = ${entityID},
+        .instance = ${instance},
+        .sensorType = ${sensorType},
+        .sensorPath = "${path}",
+        .sensorInterface = "${sensorInterface}",
+        .sensorReadingType = ${readingType},
+        .coefficientM = ${multiplier},
+        .coefficientB = ${offsetB},
+        .exponentB = ${bExp},
+        .scaledOffset = ${offsetB * pow(10,bExp)},
+        .exponentR = ${rExp},
+        .hasScale = ${hasScale},
+        .scale = ${scale},
+        .unit = "${unit}",
+        .updateFunc = ${updateFunc},
+        .getFunc = ${getFunc},
+        .mutability = Mutability(${mutability}),
+        .sensorNameFunc = ${sensorNameFunc},
+        .propertyInterfaces = {
     % for interface,properties in interfaces.items():
             {"${interface}",{
             % if properties: