@@ -90,34 +90,34 @@ static struct awcc_quirks empty_quirks;
9090
9191static const struct dmi_system_id awcc_dmi_table [] __initconst = {
9292 {
93- .ident = "Alienware Area-51m " ,
93+ .ident = "Alienware 16 Aurora " ,
9494 .matches = {
9595 DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
96- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware Area-51m " ),
96+ DMI_MATCH (DMI_PRODUCT_NAME , "Alienware 16 Aurora " ),
9797 },
98- .driver_data = & generic_quirks ,
98+ .driver_data = & g_series_quirks ,
9999 },
100100 {
101- .ident = "Alienware Area-51m R2 " ,
101+ .ident = "Alienware Area-51m" ,
102102 .matches = {
103103 DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
104- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware Area-51m R2 " ),
104+ DMI_MATCH (DMI_PRODUCT_NAME , "Alienware Area-51m" ),
105105 },
106106 .driver_data = & generic_quirks ,
107107 },
108108 {
109- .ident = "Alienware m15 R5 " ,
109+ .ident = "Alienware m15" ,
110110 .matches = {
111111 DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
112- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware m15 R5 " ),
112+ DMI_MATCH (DMI_PRODUCT_NAME , "Alienware m15" ),
113113 },
114114 .driver_data = & generic_quirks ,
115115 },
116116 {
117- .ident = "Alienware m15 R7 " ,
117+ .ident = "Alienware m16 R1 AMD " ,
118118 .matches = {
119119 DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
120- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware m15 R7 " ),
120+ DMI_MATCH (DMI_PRODUCT_NAME , "Alienware m16 R1 AMD " ),
121121 },
122122 .driver_data = & generic_quirks ,
123123 },
@@ -129,14 +129,6 @@ static const struct dmi_system_id awcc_dmi_table[] __initconst = {
129129 },
130130 .driver_data = & g_series_quirks ,
131131 },
132- {
133- .ident = "Alienware m16 R1 AMD" ,
134- .matches = {
135- DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
136- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware m16 R1 AMD" ),
137- },
138- .driver_data = & generic_quirks ,
139- },
140132 {
141133 .ident = "Alienware m16 R2" ,
142134 .matches = {
@@ -146,106 +138,66 @@ static const struct dmi_system_id awcc_dmi_table[] __initconst = {
146138 .driver_data = & generic_quirks ,
147139 },
148140 {
149- .ident = "Alienware m17 R5" ,
150- .matches = {
151- DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
152- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware m17 R5 AMD" ),
153- },
154- .driver_data = & generic_quirks ,
155- },
156- {
157- .ident = "Alienware m18 R2" ,
141+ .ident = "Alienware m17" ,
158142 .matches = {
159143 DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
160- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware m18 R2 " ),
144+ DMI_MATCH (DMI_PRODUCT_NAME , "Alienware m17 " ),
161145 },
162146 .driver_data = & generic_quirks ,
163147 },
164148 {
165- .ident = "Alienware x15 R1 " ,
149+ .ident = "Alienware m18 " ,
166150 .matches = {
167151 DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
168- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware x15 R1 " ),
152+ DMI_MATCH (DMI_PRODUCT_NAME , "Alienware m18 " ),
169153 },
170154 .driver_data = & generic_quirks ,
171155 },
172156 {
173- .ident = "Alienware x15 R2 " ,
157+ .ident = "Alienware x15" ,
174158 .matches = {
175159 DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
176- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware x15 R2 " ),
160+ DMI_MATCH (DMI_PRODUCT_NAME , "Alienware x15" ),
177161 },
178162 .driver_data = & generic_quirks ,
179163 },
180164 {
181- .ident = "Alienware x17 R2 " ,
165+ .ident = "Alienware x17" ,
182166 .matches = {
183167 DMI_MATCH (DMI_SYS_VENDOR , "Alienware" ),
184- DMI_MATCH (DMI_PRODUCT_NAME , "Alienware x17 R2 " ),
168+ DMI_MATCH (DMI_PRODUCT_NAME , "Alienware x17" ),
185169 },
186170 .driver_data = & generic_quirks ,
187171 },
188172 {
189- .ident = "Dell Inc. G15 5510" ,
190- .matches = {
191- DMI_MATCH (DMI_SYS_VENDOR , "Dell Inc." ),
192- DMI_MATCH (DMI_PRODUCT_NAME , "Dell G15 5510" ),
193- },
194- .driver_data = & g_series_quirks ,
195- },
196- {
197- .ident = "Dell Inc. G15 5511" ,
198- .matches = {
199- DMI_MATCH (DMI_SYS_VENDOR , "Dell Inc." ),
200- DMI_MATCH (DMI_PRODUCT_NAME , "Dell G15 5511" ),
201- },
202- .driver_data = & g_series_quirks ,
203- },
204- {
205- .ident = "Dell Inc. G15 5515" ,
206- .matches = {
207- DMI_MATCH (DMI_SYS_VENDOR , "Dell Inc." ),
208- DMI_MATCH (DMI_PRODUCT_NAME , "Dell G15 5515" ),
209- },
210- .driver_data = & g_series_quirks ,
211- },
212- {
213- .ident = "Dell Inc. G16 7630" ,
214- .matches = {
215- DMI_MATCH (DMI_SYS_VENDOR , "Dell Inc." ),
216- DMI_MATCH (DMI_PRODUCT_NAME , "Dell G16 7630" ),
217- },
218- .driver_data = & g_series_quirks ,
219- },
220- {
221- .ident = "Dell Inc. G3 3500" ,
173+ .ident = "Dell Inc. G15" ,
222174 .matches = {
223175 DMI_MATCH (DMI_SYS_VENDOR , "Dell Inc." ),
224- DMI_MATCH (DMI_PRODUCT_NAME , "G3 3500 " ),
176+ DMI_MATCH (DMI_PRODUCT_NAME , "Dell G15 " ),
225177 },
226178 .driver_data = & g_series_quirks ,
227179 },
228180 {
229- .ident = "Dell Inc. G3 3590 " ,
181+ .ident = "Dell Inc. G16 " ,
230182 .matches = {
231183 DMI_MATCH (DMI_SYS_VENDOR , "Dell Inc." ),
232- DMI_MATCH (DMI_PRODUCT_NAME , "G3 3590 " ),
184+ DMI_MATCH (DMI_PRODUCT_NAME , "Dell G16 " ),
233185 },
234186 .driver_data = & g_series_quirks ,
235187 },
236188 {
237- .ident = "Dell Inc. G5 5500 " ,
189+ .ident = "Dell Inc. G3 " ,
238190 .matches = {
239191 DMI_MATCH (DMI_SYS_VENDOR , "Dell Inc." ),
240- DMI_MATCH (DMI_PRODUCT_NAME , "G5 5500 " ),
192+ DMI_MATCH (DMI_PRODUCT_NAME , "G3 " ),
241193 },
242194 .driver_data = & g_series_quirks ,
243195 },
244196 {
245- .ident = "Dell Inc. G5 5505 " ,
197+ .ident = "Dell Inc. G5" ,
246198 .matches = {
247199 DMI_MATCH (DMI_SYS_VENDOR , "Dell Inc." ),
248- DMI_MATCH (DMI_PRODUCT_NAME , "G5 5505 " ),
200+ DMI_MATCH (DMI_PRODUCT_NAME , "G5" ),
249201 },
250202 .driver_data = & g_series_quirks ,
251203 },
@@ -1629,15 +1581,15 @@ static int wmax_wmi_probe(struct wmi_device *wdev, const void *context)
16291581
16301582static int wmax_wmi_suspend (struct device * dev )
16311583{
1632- if (awcc -> hwmon )
1584+ if (awcc && awcc -> hwmon )
16331585 awcc_hwmon_suspend (dev );
16341586
16351587 return 0 ;
16361588}
16371589
16381590static int wmax_wmi_resume (struct device * dev )
16391591{
1640- if (awcc -> hwmon )
1592+ if (awcc && awcc -> hwmon )
16411593 awcc_hwmon_resume (dev );
16421594
16431595 return 0 ;
0 commit comments